libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 5/6] Account for the possible ERESTART handling


From: Konstantin Belousov
Subject: [Libunwind-devel] [PATCH 5/6] Account for the possible ERESTART handling of the syscalls.
Date: Mon, 23 Apr 2012 13:51:56 +0300

---
 src/x86_64/Gos-freebsd.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/x86_64/Gos-freebsd.c b/src/x86_64/Gos-freebsd.c
index 3ef9926..71695c6 100644
--- a/src/x86_64/Gos-freebsd.c
+++ b/src/x86_64/Gos-freebsd.c
@@ -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);
-- 
1.7.9.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]