gdb/mst-solib-trampoline.diff

12 lines
428 B
Diff

--- gdb/minsyms.c
+++ gdb/minsyms.c
@@ -486,6 +486,8 @@
/* If SECTION was specified, skip any symbol from
wrong section. */
if (section
+ /* Don't ignore symbols for solib trampolines. */
+ && MSYMBOL_TYPE (&msymbol[hi]) != mst_solib_trampoline
/* Some types of debug info, such as COFF,
don't fill the bfd_section member, so don't
throw away symbols on those platforms. */