1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-28 12:11:45 +02:00

Fix handling of SA_SIGINFO frames on 32 bit x86

Submitted by: Arne de Bruijn <mail@arnedebruijn.nl>
This commit is contained in:
Arun Sharma 2010-04-03 16:49:18 -07:00
parent 6203f1cd0f
commit 2b7ca45acc

View file

@ -50,9 +50,9 @@ unw_is_signal_frame (unw_cursor_t *cursor)
without SA_SIGINFO, and
__restore_rt:
0xb8 0xad 0x00 0x00 0x00 movl 0x80,%eax
0xb8 0xad 0x00 0x00 0x00 movl 0xad,%eax
0xcd 0x80 int 0x80
0x90 nop
0x00
if SA_SIGINFO is specified.
*/
@ -61,7 +61,7 @@ unw_is_signal_frame (unw_cursor_t *cursor)
|| (ret = (*a->access_mem) (as, ip + 4, &w1, 0, arg)) < 0)
return ret;
ret = ((w0 == 0x0077b858 && w1 == 0x80cd0000)
|| (w0 == 0x0000adb8 && w1 == 0x9080cd00));
|| (w0 == 0x0000adb8 && (w1 & 0xffffff) == 0x80cd00));
Debug (16, "returning %d\n", ret);
return ret;
#else