418be79
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218379
418be79
418be79
aefb0e1
Index: gdb-6.6/gdb/minsyms.c
aefb0e1
===================================================================
aefb0e1
--- gdb-6.6.orig/gdb/minsyms.c	2007-01-20 13:53:48.000000000 +0100
aefb0e1
+++ gdb-6.6/gdb/minsyms.c	2007-01-20 13:58:47.000000000 +0100
aefb0e1
@@ -490,6 +490,11 @@ lookup_minimal_symbol_by_pc_section (COR
aefb0e1
 			 don't fill the bfd_section member, so don't
aefb0e1
 			 throw away symbols on those platforms.  */
aefb0e1
 		      && SYMBOL_BFD_SECTION (&msymbol[hi]) != NULL
418be79
+		      /* Don't ignore symbols for solib trampolines.
418be79
+		         Limit its sideeffects - only for non-0 sized trampolines.
418be79
+		         Red Hat Bug 200533 with its regression Bug 218379.  */
418be79
+		      && (MSYMBOL_TYPE (&msymbol[hi]) != mst_solib_trampoline
418be79
+		          || MSYMBOL_SIZE (&msymbol[hi]))
418be79
 		      && (!matching_bfd_sections
418be79
 			  (SYMBOL_BFD_SECTION (&msymbol[hi]), section)))
aefb0e1
 		    {