mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
ef02cae507
commit
623da1525a
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue