mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Backport some fixes from libbacktrace upstream repo.
This commit is contained in:
@@ -2789,6 +2789,9 @@ elf_add (struct backtrace_state *state, const char *filename, int descriptor,
|
||||
backtrace_release_view (state, &shdr_view, error_callback, data);
|
||||
}
|
||||
|
||||
if (shnum == 0 || shstrndx == 0)
|
||||
goto fail;
|
||||
|
||||
/* To translate PC to file/line when using DWARF, we need to find
|
||||
the .debug_info and .debug_line sections. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user