1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-04-17 18:12:18 +02:00

Arm code uses dwarf before arm for finding proc info, but unlike

dwarf code, ignores error return from dwarf_callback.  Change arm
code to behave like dwarf code in that case.
This commit is contained in:
Doug Moore 2017-06-14 22:18:31 -05:00 committed by Dave Watson
parent 0b51f5892d
commit be06809b5f

View file

@ -523,6 +523,12 @@ arm_find_proc_info (unw_addr_space_t as, unw_word_t ip,
ret = dl_iterate_phdr (dwarf_callback, &cb_data);
SIGPROCMASK (SIG_SETMASK, &saved_mask, NULL);
if (ret <= 0)
{
Debug (14, "IP=0x%lx not found\n", (long) ip);
return -UNW_ENOINFO;
}
if (cb_data.single_fde)
/* already got the result in *pi */
return 0;