summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-26 21:46:23 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-26 21:46:23 (GMT)
commitc6aa2c467b0b3d54e536aee2456415d08164b207 (patch)
treeb6b10de4cebcc72b3aac22aaaab3882687c6c78a /addr2line.c
parente6dcb3b174d6bfaafe623a0e4a8270989e1eca9b (diff)
temporally change for powerpc64-linux fc18
fc18 powerpc64's libc6-dbg has symtab/strtab but it can't be referenced. therefore add workaround not to see them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c
index 417061b..5b4c1ea 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -541,7 +541,7 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
}
}
- if (symtab_shdr && strtab_shdr) {
+ if (check_debuglink && symtab_shdr && strtab_shdr) {
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)));