Skip to content

Commit

Permalink
temporally change for powerpc64-linux fc18
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nurse committed Mar 26, 2014
1 parent e6dcb3b commit c6aa2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addr2line.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit c6aa2c4

Please sign in to comment.