diff options
Diffstat (limited to 'gdb/solib-darwin.c')
-rw-r--r-- | gdb/solib-darwin.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c index c37049a..4de8cb4 100644 --- a/gdb/solib-darwin.c +++ b/gdb/solib-darwin.c @@ -618,6 +618,16 @@ darwin_bfd_open (char *pathname) bfd_get_filename (abfd), bfd_errmsg (bfd_get_error ())); } + /* The current filename for fat-binary BFDs is a name generated + by BFD, usually a string containing the name of the architecture. + Reset its value to the actual filename. */ + { + char *data = bfd_alloc (res, strlen (pathname) + 1); + + strcpy (data, pathname); + res->filename = data; + } + gdb_bfd_unref (abfd); return res; } |