Skip to content

Commit

Permalink
Fix _Unwind_Backtrace() for SEH, using simpler variant proposed by Ma…
Browse files Browse the repository at this point in the history
…rtin Storsjö <martin@martin.st>
  • Loading branch information
krlmlr committed Sep 9, 2020
1 parent 4c44b70 commit 685cb27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libgcc/unwind-seh.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ _Unwind_Backtrace(_Unwind_Trace_Fn trace,
&gcc_context.disp->HandlerData,
&gcc_context.disp->EstablisherFrame, NULL);

gcc_context.cfa = ms_context.Rsp;
gcc_context.ra = ms_context.Rip;

/* Call trace function. */
if (trace (&gcc_context, trace_argument) != _URC_NO_REASON)
return _URC_FATAL_PHASE1_ERROR;
Expand Down

0 comments on commit 685cb27

Please sign in to comment.