]> git.pld-linux.org Git - packages/gdb.git/blame - gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
- typo
[packages/gdb.git] / gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
CommitLineData
3a58abaf
AM
1https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218379
2
3
6ed6bacf 4Index: gdb-7.2.50.20110117/gdb/symtab.c
3a58abaf 5===================================================================
6ed6bacf
AM
6--- gdb-7.2.50.20110117.orig/gdb/symtab.c 2011-01-17 15:47:37.000000000 +0100
7+++ gdb-7.2.50.20110117/gdb/symtab.c 2011-01-17 15:51:48.000000000 +0100
8@@ -2015,6 +2015,13 @@ find_pc_sect_line (CORE_ADDR pc, struct
9 SYMBOL_LINKAGE_NAME (msymbol)); */
10 ;
3a58abaf
AM
11 /* fall through */
12+ /* `msymbol' trampoline may be located before its .text symbol
13+ but this text symbol may be the address we were looking for.
14+ Avoid `find_pc_sect_line'<->`find_pc_line' infinite loop.
15+ Red Hat Bug 218379. */
16+ else if (SYMBOL_VALUE (mfunsym) == pc)
7566401a 17+ warning ("In stub for %s (0x%s); interlocked, please submit the binary to http://bugzilla.redhat.com", SYMBOL_LINKAGE_NAME (msymbol), paddress (target_gdbarch, pc));
3a58abaf
AM
18+ /* fall through */
19 else
20 return find_pc_line (SYMBOL_VALUE_ADDRESS (mfunsym), 0);
21 }
This page took 0.352547 seconds and 4 git commands to generate.