From 5e889a42faa694e94096a46033f69c19d67229c4 Mon Sep 17 00:00:00 2001 From: Jason King Date: Fri, 17 Apr 2020 23:08:34 +0000 Subject: Stop stepping on Solaris and illumos after reaching an IP of 0 --- src/x86_64/Gstep.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.1