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

[X86-64] Fix the pattern used to match signal frames.

The current pattern is too restrictive and doesn't work well on
modern glibcs.

Signed-off-by: Paul Pluzhnikov <ppluzhnikov@google.com>
Signed-off-by: Arun Sharma <arun.sharma@google.com>
This commit is contained in:
Paul Pluzhnikov 2008-04-16 08:05:49 -06:00 committed by David Mosberger-Tang
parent 3842dac733
commit bb9d3dc689

View file

@ -54,8 +54,8 @@ unw_is_signal_frame (unw_cursor_t *cursor)
if ((ret = (*a->access_mem) (as, ip, &w0, 0, arg)) < 0
|| (ret = (*a->access_mem) (as, ip + 8, &w1, 0, arg)) < 0)
return 0;
w1 &= 0xffffffff;
return (w0 == 0x0f0000000fc0c748 && w1 == 0x66666605);
w1 &= 0xff;
return (w0 == 0x0f0000000fc0c748 && w1 == 0x05);
}
#else /* __linux__ */