summaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index 289560957f..76ac7bece3 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -452,9 +452,11 @@ maintenance_info_sections (const char *arg, int from_tty)
for (objfile *ofile : current_program_space->objfiles ())
{
if (ofile->obfd == current_program_space->exec_bfd ())
- maint_print_all_sections (_("Exec file: "), ofile->obfd, ofile, arg);
+ maint_print_all_sections (_("Exec file: "), ofile->obfd.get (),
+ ofile, arg);
else if (opts.all_objects)
- maint_print_all_sections (_("Object file: "), ofile->obfd, ofile, arg);
+ maint_print_all_sections (_("Object file: "), ofile->obfd.get (),
+ ofile, arg);
}
if (core_bfd)