This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/10206] symname() resolves incorrect symbols on ppc


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]