From 94277a38987e6809e7a80208ebb1f77cc2c17d46 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 17 Oct 2006 20:17:45 +0000 Subject: gdb/ * Makefile.in (symtab.o): Update. * symtab.h (matching_bfd_section): New prototype. * symtab.c (matching_bfd_section): New. (find_pc_sect_psymbol, find_pc_sect_symtab): Use it. * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise. * printcmd.c (sym_info): Ignore separate debug objfiles. gdb/testsuite/ * gdb.base/sepdebug.exp: Remove debug format test. * lib/gdb.exp (gdb_gnu_strip_debug): Perform debug format test. Handle no-symtab. * gdb.base/sepsymtab.c, gdb.base/sepsymtab.exp: New. --- gdb/printcmd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/printcmd.c') 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); -- cgit v1.1