This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/10206] symname() resolves incorrect symbols on ppc
- From: "ananth at in dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 28 May 2009 10:17:18 -0000
- Subject: [Bug tapsets/10206] symname() resolves incorrect symbols on ppc
- References: <20090527115017.10206.prerna@linux.vnet.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.