ruby-changes:33356
From: naruse <ko1@a...>
Date: Wed, 26 Mar 2014 16:40:58 +0900 (JST)
Subject: [ruby-changes:33356] naruse:r45435 (trunk): temporaly show sym->st_name and so on
naruse 2014-03-26 16:40:51 +0900 (Wed, 26 Mar 2014) New Revision: 45435 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45435 Log: temporaly show sym->st_name and so on Modified files: trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 45434) +++ addr2line.c (revision 45435) @@ -533,6 +533,9 @@ fill_lines(int num_traces, void **traces https://github.com/ruby/ruby/blob/trunk/addr2line.c#L533 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 https://github.com/ruby/ruby/blob/trunk/addr2line.c#L564 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/