1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-26 11:21:44 +02:00

Correct rsp offset

This commit is contained in:
Konstantin Belousov 2010-03-07 21:20:43 +02:00
parent efd0655ff4
commit d0d5f9979b
2 changed files with 5 additions and 1 deletions

View file

@ -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 &&

View file

@ -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