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-29 08:36:46 -0700
commit5e889a42faa694e94096a46033f69c19d67229c4 (patch)
tree3775c07d4f2833f872be4cac5b466f62c4577f83
parent04cd751deae301c606b382dba9e9207bdefc7a9d (diff)
downloadlibunwind-5e889a42faa694e94096a46033f69c19d67229c4.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