diff options
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index ae4c23a..b257c85 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -360,7 +360,6 @@ lookup_minimal_symbol_solib_trampoline (const char *name, return NULL; } - /* Search through the minimal symbol table for each objfile and find the symbol whose address is the largest address that is still less than or equal to PC, and matches SECTION (if non-NULL). Returns a @@ -491,7 +490,8 @@ lookup_minimal_symbol_by_pc_section (CORE_ADDR pc, asection *section) 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) + && (!matching_bfd_sections + (SYMBOL_BFD_SECTION (&msymbol[hi]), section))) { hi--; continue; |