diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2016-03-28 12:20:56 +0000 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2017-08-15 10:33:59 -0700 |
commit | 022bb326a29ded6c11c4d836361ae2530c4cf22f (patch) | |
tree | 205ce39a67be5cd0a8fda5ab7de484c5438afc36 | |
parent | 74d7cd9898ab68c33e0ee511304c77bb910a02cd (diff) | |
download | libunwind-022bb326a29ded6c11c4d836361ae2530c4cf22f.tar.gz |
arm: Return code correction for unw_step()
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 <myungjoo.ham@samsung.com>
-rw-r--r-- | src/arm/Gstep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arm/Gstep.c b/src/arm/Gstep.c index 37e6c12f..3ffda083 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; } |