2017-12-10 22:00:49 +00:00
|
|
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
|
|
Subject: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
|
|
|
|
|
|
|
|
FileName: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
;; Fix lockup on trampoline vs. its function lookup; unreproducible (BZ 218379).
|
|
|
|
;;=fedora
|
2017-12-04 19:24:00 +00:00
|
|
|
|
2006-12-23 21:32:21 +00:00
|
|
|
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218379
|
2017-12-08 04:31:26 +00:00
|
|
|
---
|
|
|
|
gdb/symtab.c | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
2006-12-23 21:32:21 +00:00
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/symtab.c b/gdb/symtab.c
|
2018-01-31 22:47:02 +00:00
|
|
|
index 81f4fc9ec5..a7e8431cfe 100644
|
2017-12-08 04:31:26 +00:00
|
|
|
--- a/gdb/symtab.c
|
|
|
|
+++ b/gdb/symtab.c
|
2018-01-31 22:47:02 +00:00
|
|
|
@@ -3166,6 +3166,13 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent)
|
2011-01-17 15:31:43 +00:00
|
|
|
SYMBOL_LINKAGE_NAME (msymbol)); */
|
|
|
|
;
|
2006-12-23 21:32:21 +00:00
|
|
|
/* fall through */
|
|
|
|
+ /* `msymbol' trampoline may be located before its .text symbol
|
|
|
|
+ but this text symbol may be the address we were looking for.
|
|
|
|
+ Avoid `find_pc_sect_line'<->`find_pc_line' infinite loop.
|
|
|
|
+ Red Hat Bug 218379. */
|
2014-06-19 20:14:32 +00:00
|
|
|
+ else if (BMSYMBOL_VALUE_ADDRESS (mfunsym) == pc)
|
|
|
|
+ warning ("In stub for %s (0x%s); interlocked, please submit the binary to http://bugzilla.redhat.com", MSYMBOL_LINKAGE_NAME (msymbol.minsym), paddress (target_gdbarch (), pc));
|
2006-12-23 21:32:21 +00:00
|
|
|
+ /* fall through */
|
|
|
|
else
|
2014-06-19 20:14:32 +00:00
|
|
|
return find_pc_line (BMSYMBOL_VALUE_ADDRESS (mfunsym), 0);
|
2006-12-23 21:32:21 +00:00
|
|
|
}
|
2017-12-08 04:31:26 +00:00
|
|
|
--
|
|
|
|
2.14.3
|
|
|
|
|