libsysprof-analyze: fallback in case of debuglink error

If for some reason the debuglink has an issue, we can fallback to looking
at the specific ELF containing the address we wanted to look at.
This commit is contained in:
Christian Hergert
2023-05-19 16:33:21 -07:00
parent d7f6e4b922
commit 61d5187b09

View File

@ -294,7 +294,12 @@ sysprof_elf_get_symbol_at_address (SysprofElf *self,
g_return_val_if_fail (SYSPROF_IS_ELF (self), NULL);
if (self->debug_link_elf != NULL)
return sysprof_elf_get_symbol_at_address (self->debug_link_elf, address, begin_address, end_address);
{
ret = sysprof_elf_get_symbol_at_address (self->debug_link_elf, address, begin_address, end_address);
if (ret != NULL)
return ret;
}
if ((symbol = elf_parser_lookup_symbol (self->parser, address)))
{