I am playing around with longjmp and setjmp on my M1 MacBook Air. On an x86_64 Linux machine, setjmp populates a jmp_buf struct which has a long[] containing 'mangled' register values. Going through the glibc code, I was able to decode those values to get the stack pointer and frame pointer for instance.
On my M1 MackBook Air, this jmp_buf type seems to be an int[37] according to lldb. I can see the values, and print them but none of …