Skip to content

Commit ac31143

Browse files
composerinteraliak0kubun
authored andcommitted
[Backport 3.4] Fix C level backtraces for USE_ELF
[Backport #21289]
1 parent 3557739 commit ac31143

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addr2line.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,9 +2173,8 @@ fill_lines(int num_traces, void **traces, int check_debuglink,
21732173
}
21742174
}
21752175

2176-
if (offset == -1) {
2176+
if (offset == 0) {
21772177
/* main executable */
2178-
offset = 0;
21792178
if (dynsym_shdr && dynstr_shdr) {
21802179
char *strtab = file + dynstr_shdr->sh_offset;
21812180
ElfW(Sym) *symtab = (ElfW(Sym) *)(file + dynsym_shdr->sh_offset);

0 commit comments

Comments
 (0)