From 65d5a54a0c8b85fece36b96c13dd2f89b20333fd Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 11 Feb 2001 06:11:38 +0000 Subject: [PATCH] * NEWS: Document that "info symbol" works with COFF debug info and its variants. * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip symbols whose SYMBOL_BFD_SECTION is NULL. --- gdb/ChangeLog | 8 ++++++++ gdb/NEWS | 2 ++ gdb/minsyms.c | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ae38ff0..09b69a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2001-02-11 Eli Zaretskii + + * NEWS: Document that "info symbol" works with COFF debug info and + its variants. + + * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip + symbols whose SYMBOL_BFD_SECTION is NULL. + 2000-02-10 Peter Schauer Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB. diff --git a/gdb/NEWS b/gdb/NEWS index e4bd55a..dc6ad4c 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -3,6 +3,8 @@ *** Changes since GDB 5.0: +* "info symbol" works on platforms which use COFF, ECOFF, XCOFF, and NLM. + * New native configurations Alpha FreeBSD alpha*-*-freebsd* diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 9070b6f..62cd00f 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -482,6 +482,10 @@ lookup_minimal_symbol_by_pc_section (CORE_ADDR pc, asection *section) /* This is the new code that distinguishes it from the old function */ if (section) while (hi >= 0 + /* Some types of debug info, such as COFF, + don't fill the bfd_section member, so don't + throw away symbols on those platforms. */ + && SYMBOL_BFD_SECTION (&msymbol[hi]) != NULL && SYMBOL_BFD_SECTION (&msymbol[hi]) != section) --hi; -- 2.7.4