1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-25 08:37:38 +01:00

freebsd: Account for the possible ERESTART handling of the syscalls.

This commit is contained in:
Konstantin Belousov 2012-04-23 13:51:56 +03:00 committed by Arun Sharma
parent 5f440b4af2
commit 3bb74aae3d

View file

@ -77,8 +77,9 @@ eb fd jmp 0b
*/
if ((ret = (*a->access_mem) (as, ip - 5, &b0, 0, arg)) < 0)
return (0);
b0 &= 0xffffffffff;
if (b0 == 0x000000050fca8949)
Debug (12, "b0 0x%lx\n", b0);
if ((b0 & 0xffffffffffffff) == 0x050fca89490000 ||
(b0 & 0xffffffffff) == 0x050fca8949)
{
c->sigcontext_format = X86_64_SCF_FREEBSD_SYSCALL;
return (c->sigcontext_format);