mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-03-10 02:20:07 +01: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:
parent
3842dac733
commit
bb9d3dc689
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ unw_is_signal_frame (unw_cursor_t *cursor)
|
||||||
if ((ret = (*a->access_mem) (as, ip, &w0, 0, arg)) < 0
|
if ((ret = (*a->access_mem) (as, ip, &w0, 0, arg)) < 0
|
||||||
|| (ret = (*a->access_mem) (as, ip + 8, &w1, 0, arg)) < 0)
|
|| (ret = (*a->access_mem) (as, ip + 8, &w1, 0, arg)) < 0)
|
||||||
return 0;
|
return 0;
|
||||||
w1 &= 0xffffffff;
|
w1 &= 0xff;
|
||||||
return (w0 == 0x0f0000000fc0c748 && w1 == 0x66666605);
|
return (w0 == 0x0f0000000fc0c748 && w1 == 0x05);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* __linux__ */
|
#else /* __linux__ */
|
||||||
|
|
Loading…
Add table
Reference in a new issue