小编Sam*_*Sam的帖子

How can jmp_buf on M1 Macs be decoded?

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 …

c macos arm64 apple-m1

3
推荐指数
1
解决办法
228
查看次数

标签 统计

apple-m1 ×1

arm64 ×1

c ×1

macos ×1