mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-23 16:50:29 +01:00
Correct rsp offset
This commit is contained in:
parent
efd0655ff4
commit
d0d5f9979b
2 changed files with 5 additions and 1 deletions
|
@ -97,6 +97,10 @@ eb fd jmp 0b
|
|||
|| (ret = (*a->access_mem) (as, ip + 8, &w1, 0, arg)) < 0
|
||||
|| (ret = (*a->access_mem) (as, ip + 16, &w2, 0, arg)) < 0)
|
||||
return 0;
|
||||
#if 0
|
||||
fprintf(stderr, "is_signal_frame: ip %lx w0 %lx w1 %lx w2 %lx\n",
|
||||
ip, w0, w1, w2);
|
||||
#endif
|
||||
w2 &= 0xffffff;
|
||||
return (w0 == 0x48006a10247c8d48 &&
|
||||
w1 == 0x050f000001a1c0c7 &&
|
||||
|
|
|
@ -59,7 +59,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
#define UC_MCONTEXT_GREGS_RDX 0x28
|
||||
#define UC_MCONTEXT_GREGS_RAX 0x48
|
||||
#define UC_MCONTEXT_GREGS_RCX 0x30
|
||||
#define UC_MCONTEXT_GREGS_RSP 0xa0
|
||||
#define UC_MCONTEXT_GREGS_RSP 0xc8
|
||||
#define UC_MCONTEXT_GREGS_RIP 0xb0
|
||||
#define UC_MCONTEXT_FPSTATE 0xf0
|
||||
#define UC_MCONTEXT_OWNEDFP 0xe8
|
||||
|
|
Loading…
Reference in a new issue