diff options
Diffstat (limited to 'gcc/unwind.inc')
-rw-r--r-- | gcc/unwind.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/unwind.inc b/gcc/unwind.inc index 63fba968fa1..b533eb58873 100644 --- a/gcc/unwind.inc +++ b/gcc/unwind.inc @@ -184,8 +184,9 @@ _Unwind_ForcedUnwind_Phase2 (struct _Unwind_Exception *exc, return _URC_FATAL_PHASE2_ERROR; } - /* Update cur_context to describe the same frame as fs. */ - uw_update_context (context, &fs); + /* Update cur_context to describe the same frame as fs, and discard + the previous context if necessary. */ + uw_advance_context (context, &fs); } return code; |