summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason King <jason.king@joyent.com>2020-04-17 23:08:34 +0000
committerDave Watson <dade.watson@gmail.com>2020-04-28 09:09:28 -0700
commit7d335e17489c6d55f633ee9b8a8c9a0d3507627a (patch)
treee7e0de0afca5655a213499e54fe3f9f23b18efc9
parentcce9cc0f963a5897a41e6746dd336e4548ebf741 (diff)
downloadlibunwind-7d335e17489c6d55f633ee9b8a8c9a0d3507627a.tar.gz
Stop stepping on Solaris and illumos after reaching an IP of 0
-rw-r--r--src/x86_64/Gstep.c7
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