diff options
Diffstat (limited to 'gdb/maint.c')
-rw-r--r-- | gdb/maint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index 18a804a..71c4b85 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -503,8 +503,8 @@ maintenance_translate_address (char *arg, int from_tty) gdb_assert (sect->the_bfd_section && sect->the_bfd_section->name); section_name = sect->the_bfd_section->name; - gdb_assert (sect->objfile && sect->objfile->name); - obj_name = sect->objfile->name; + gdb_assert (sect->objfile && objfile_name (sect->objfile)); + obj_name = objfile_name (sect->objfile); if (MULTI_OBJFILE_P ()) printf_filtered (_("%s + %s in section %s of %s\n"), |