summaryrefslogtreecommitdiffstats
path: root/unwind.c
diff options
context:
space:
mode:
Diffstat (limited to 'unwind.c')
-rw-r--r--unwind.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/unwind.c b/unwind.c
index e76ace02..35084a81 100644
--- a/unwind.c
+++ b/unwind.c
@@ -187,6 +187,12 @@ void uw_pop_frame(uw_frame_t *fr)
}
}
+void uw_pop_until(uw_frame_t *fr)
+{
+ while (uw_stack != fr)
+ uw_pop_frame(uw_stack);
+}
+
uw_frame_t *uw_current_frame(void)
{
return uw_stack;