Skip to content

Commit 685cb27

Browse files
committed
Fix _Unwind_Backtrace() for SEH, using simpler variant proposed by Martin Storsjö <martin@martin.st>
1 parent 4c44b70 commit 685cb27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libgcc/unwind-seh.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@ _Unwind_Backtrace(_Unwind_Trace_Fn trace,
466466
&gcc_context.disp->HandlerData,
467467
&gcc_context.disp->EstablisherFrame, NULL);
468468

469+
gcc_context.cfa = ms_context.Rsp;
470+
gcc_context.ra = ms_context.Rip;
471+
469472
/* Call trace function. */
470473
if (trace (&gcc_context, trace_argument) != _URC_NO_REASON)
471474
return _URC_FATAL_PHASE1_ERROR;

0 commit comments

Comments
 (0)