From 623da1525a7a98f84286316e791086548083ab97 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 26 Mar 2014 07:40:51 +0000 Subject: 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 --- addr2line.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3