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:
parent
0b51f5892d
commit
be06809b5f
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
ret = dl_iterate_phdr (dwarf_callback, &cb_data);
|
||||||
SIGPROCMASK (SIG_SETMASK, &saved_mask, NULL);
|
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)
|
if (cb_data.single_fde)
|
||||||
/* already got the result in *pi */
|
/* already got the result in *pi */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue