summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-26 10:59:44 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-26 10:59:44 (GMT)
commit2d8c3e78516525c2899e6d2a39f9e8cc82b10fc7 (patch)
tree910a49a93b52ff732671a1d44142ba85b4881895 /addr2line.c
parent45fff5150a1aa5fac2e54a9771dbc4a3318df8b9 (diff)
remove break because strtab/symtab is usually the last segment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45437 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 ab2a1de..417061b 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -525,12 +525,6 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
}
}
- /* j: ....xxx
- * 1: debug_line
- * 2: .symtab
- * 4: .strtab
- */
- j = 0;
for (i = 0; i < ehdr->e_shnum; i++) {
section_name = shstr + shdr[i].sh_name;
#ifdef __powerpc64__
@@ -538,17 +532,13 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
#endif
if (!strcmp(section_name, ".debug_line")) {
debug_line_shdr = shdr + i;
- j |= 1;
} else if (!strcmp(section_name, ".gnu_debuglink")) {
gnu_debuglink_shdr = shdr + i;
} else if (!strcmp(section_name, ".symtab")) {
symtab_shdr = shdr + i;
- j |= 2;
} else if (!strcmp(section_name, ".strtab")) {
strtab_shdr = shdr + i;
- j |= 4;
}
- if (j == 7) break;
}
if (symtab_shdr && strtab_shdr) {