summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-28 01:23:02 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-28 01:23:02 +0000
commit209a310c47a6e1f68f209bbf7038b12096d86b46 (patch)
tree5c63704e1c309db8641a29ae52bce6b23aba1de6 /addr2line.c
parent0795c7168f7847550709e9e31410ba69dafeec7a (diff)
revert r45417
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/addr2line.c b/addr2line.c
index 97dee576f4..71cec4cb8f 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -527,9 +527,6 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
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
switch (shdr[i].sh_type) {
case SHT_STRTAB:
if (!strcmp(section_name, ".strtab")) {
@@ -555,18 +552,11 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
char *strtab = file + strtab_shdr->sh_offset;
ElfW(Sym) *symtab = (ElfW(Sym) *)(file + symtab_shdr->sh_offset);
int symtab_count = (int)(symtab_shdr->sh_size / sizeof(ElfW(Sym)));
-#ifdef __powerpc64__
- kprintf("\n= %s %lx\n",lines[offset].path,lines[offset].base_addr);
-#endif
for (j = 0; j < symtab_count; j++) {
ElfW(Sym) *sym = &symtab[j];
int type = ELF_ST_TYPE(sym->st_info);
uintptr_t saddr = (uintptr_t)sym->st_value + current_line->base_addr;
if (type != STT_FUNC) continue;
-#ifdef __powerpc64__
- 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;
if (lines[i].line != -1 || d <= 0 || d > (uintptr_t)sym->st_size)