aboutsummaryrefslogtreecommitdiffstats
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-26 07:40:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-26 07:40:51 +0000
commit623da1525a7a98f84286316e791086548083ab97 (patch)
tree62e4b72b27943b512103a6eb957ff54cdd163628 /addr2line.c
parentef02cae50743132b2ad85ef203c1692e41079ecd (diff)
downloadruby-623da1525a7a98f84286316e791086548083ab97.tar.gz
temporaly show sym->st_name and so on
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c
index a7bb9c3a0e..ab2a1deeb4 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -533,6 +533,9 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
j = 0;
for (i = 0; i < ehdr->e_shnum; i++) {
section_name = shstr + shdr[i].sh_name;
+#ifdef __powerpc64__
+ kprintf("%s:: %s: flag(%lx)\n",binary_filename,section_name,shdr[i].sh_flags);
+#endif
if (!strcmp(section_name, ".debug_line")) {
debug_line_shdr = shdr + i;
j |= 1;
@@ -561,7 +564,8 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
uintptr_t saddr = (uintptr_t)sym->st_value + current_line->base_addr;
if (type != STT_FUNC) continue;
#ifdef __powerpc64__
- kprintf("%s %lx %lx\n",strtab + sym->st_name,sym->st_value,sym->st_size);
+ kprintf("%lx %lx %lx %lx\n",strtab,sym->st_name,sym->st_value,sym->st_size);
+ kprintf("%s\n",strtab + sym->st_name);
#endif
for (i = offset; i < num_traces; i++) {
uintptr_t d = (uintptr_t)traces[i] - saddr;