magic-trace icon indicating copy to clipboard operation
magic-trace copied to clipboard

`setjmp`/`longjmp` support

Open Xyene opened this issue 3 years ago • 0 comments

We cannot support arbitrary _setjmp/longjmp, but if we see a longjmp we can probably avoid totally breaking the trace by resetting the stack, and ignoring future rets underflowing our call stack (because we wouldn't know how many stack frames should have gotten popped).

They appear as Call "_setjmp" and Call "longjmp" tokens in the stream.

Xyene avatar Mar 18 '22 13:03 Xyene