mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-22 16:20:29 +01:00
ARM: Fix return value of arm_find_proc_info
Initialize the return value with -1 in order prevent arm_find_proc_info from returning zero. This could happen in case the environemtn variable UNW_ARM_UNWIND_METHOD doesn't allow exidx and/or dwarf unwinding. Signed-off-by: Ken Werner <ken.werner@linaro.org>
This commit is contained in:
parent
8ab8863e9f
commit
93e64550ac
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ HIDDEN int
|
|||
arm_find_proc_info (unw_addr_space_t as, unw_word_t ip,
|
||||
unw_proc_info_t *pi, int need_unwind_info, void *arg)
|
||||
{
|
||||
int ret = 0;
|
||||
int ret = -1;
|
||||
intrmask_t saved_mask;
|
||||
|
||||
Debug (14, "looking for IP=0x%lx\n", (long) ip);
|
||||
|
|
Loading…
Reference in a new issue