[Bug tapsets/10206] symname() resolves incorrect symbols on ppc
ananth at in dot ibm dot com
sourceware-bugzilla@sourceware.org
Thu May 28 10:18:00 GMT 2009
------- Additional Comments From ananth at in dot ibm dot com 2009-05-28 10:17 -------
The following patch seems to fix the problem:
Will commit it after mjw's nod.
---
translate.cxx | 1 +
1 file changed, 1 insertion(+)
Index: systemtap-26may/translate.cxx
===================================================================
--- systemtap-26may.orig/translate.cxx
+++ systemtap-26may/translate.cxx
@@ -4617,6 +4617,7 @@ dump_unwindsyms (Dwfl_Module *m,
// We omit symbols that have suspicious addresses (before base,
// or after end).
if ((GELF_ST_TYPE (sym.st_info) == STT_FUNC ||
+ GELF_ST_TYPE (sym.st_info) == STT_NOTYPE ||
GELF_ST_TYPE (sym.st_info) == STT_OBJECT) // PR10000: also need
.data
&& !(sym.st_shndx == SHN_UNDEF // Value undefined,
|| shndxp == (GElf_Word) -1 // in a non-allocated section,
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10206
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list