diff options
Diffstat (limited to 'gdb/solib-som.c')
-rw-r--r-- | gdb/solib-som.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-som.c b/gdb/solib-som.c index 457e464..98b32db 100644 --- a/gdb/solib-som.c +++ b/gdb/solib-som.c @@ -569,7 +569,7 @@ link_map_start (void) static int match_main (const char *name) { - return strcmp (name, symfile_objfile->name) == 0; + return strcmp (name, objfile_name (symfile_objfile)) == 0; } static struct so_list * @@ -839,7 +839,7 @@ som_solib_section_offsets (struct objfile *objfile, { /* Oh what a pain! We need the offsets before so_list->objfile is valid. The BFDs will never match. Make a best guess. */ - if (strstr (objfile->name, so_list->so_name)) + if (strstr (objfile_name (objfile), so_list->so_name)) { asection *private_section; struct obj_section *sect; |