diff options
author | Jason King <jason.king@joyent.com> | 2020-04-17 23:08:34 +0000 |
---|---|---|
committer | Dave Watson <dade.watson@gmail.com> | 2020-04-29 08:36:46 -0700 |
commit | 5e889a42faa694e94096a46033f69c19d67229c4 (patch) | |
tree | 3775c07d4f2833f872be4cac5b466f62c4577f83 | |
parent | 04cd751deae301c606b382dba9e9207bdefc7a9d (diff) | |
download | libunwind-5e889a42faa694e94096a46033f69c19d67229c4.tar.gz |
Stop stepping on Solaris and illumos after reaching an IP of 0
-rw-r--r-- | src/x86_64/Gstep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/x86_64/Gstep.c b/src/x86_64/Gstep.c index 81e7b09d..d4831197 100644 --- a/src/x86_64/Gstep.c +++ b/src/x86_64/Gstep.c @@ -270,6 +270,13 @@ unw_step (unw_cursor_t *cursor) Debug (2, "returning %d\n", ret); return ret; } +#if __sun + if (c->dwarf.ip == 0) + { + Debug (2, "returning 0\n"); + return ret; + } +#endif ret = 1; } else |