libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 1/2] ARM: Fix return value of arm_find_proc_inf


From: Ken Werner
Subject: [Libunwind-devel] [PATCH 1/2] ARM: Fix return value of arm_find_proc_info
Date: Wed, 17 Aug 2011 16:41:22 +0200

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 <address@hidden>
---
 src/arm/Gex_tables.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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);
-- 
1.7.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]