aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index b99423f..f410cf1 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -459,8 +459,9 @@ maintenance_info_sections (const char *arg, int from_tty)
ofile, arg);
}
- if (core_bfd)
- maint_print_all_sections (_("Core file: "), core_bfd, nullptr, arg);
+ if (current_program_space->core_bfd () != nullptr)
+ maint_print_all_sections (_("Core file: "),
+ current_program_space->core_bfd (), nullptr, arg);
}
/* Implement the "maintenance info target-sections" command. */