aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index ade7802..210a1c0 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -983,6 +983,11 @@ sym_info (char *arg, int from_tty)
addr = parse_and_eval_address (arg);
ALL_OBJSECTIONS (objfile, osect)
{
+ /* Only process each object file once, even if there's a separate
+ debug file. */
+ if (objfile->separate_debug_objfile_backlink)
+ continue;
+
sect = osect->the_bfd_section;
sect_addr = overlay_mapped_address (addr, sect);