Message ID | 1313592083-2817-2-git-send-email-ken.werner@linaro.org |
---|---|
State | Accepted |
Commit | 93e64550acf34fba786eddbb2e1b108bf34ae106 |
Headers | show |
diff --git a/src/arm/Gex_tables.c b/src/arm/Gex_tables.c index e6ac3ef..5d8c0f4 100644 --- a/src/arm/Gex_tables.c +++ b/src/arm/Gex_tables.c @@ -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);
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> --- src/arm/Gex_tables.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)