From 93e64550acf34fba786eddbb2e1b108bf34ae106 Mon Sep 17 00:00:00 2001 From: Ken Werner Date: Wed, 17 Aug 2011 12:48:03 +0000 Subject: [PATCH] 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 --- src/arm/Gex_tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/Gex_tables.c b/src/arm/Gex_tables.c index e6ac3efc..5d8c0f45 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);