libunwind-devel
[Top][All Lists]
Advanced

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

[Libunwind-devel] [PATCH] arm: Return code correction for unw_step()


From: MyungJoo Ham
Subject: [Libunwind-devel] [PATCH] arm: Return code correction for unw_step()
Date: Mon, 28 Mar 2016 12:20:56 +0000 (GMT)

Let's not drop error code or zero-return unconditionally.

This has been incurring occasional indefinite loop in
dotnet core when it already had hit the bottom by
continously returning 1 from unw_step();

Signed-off-by: MyungJoo Ham <address@hidden>
---
 src/arm/Gstep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/arm/Gstep.c b/src/arm/Gstep.c
index 79f2dd2..5c0d4f4 100644
--- a/src/arm/Gstep.c
+++ b/src/arm/Gstep.c
@@ -268,5 +268,5 @@ unw_step (unw_cursor_t *cursor)
             }
         }
     }
-  return ret == -UNW_ENOINFO ? 0 : 1;
+  return ret == -UNW_ENOINFO ? 0 : ret;
 }
-- 
1.9.1


reply via email to

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