* solib-svr4.c (svr4_truncate_ptr): New function.
[deliverable/binutils-gdb.git] / gdb / x86-64-linux-tdep.c
index 14e78cda484a43ee5ed96b8255bd61c2e362d3df..e4df224fced79de11490f077f07a50cad6a6e5e9 100644 (file)
@@ -66,6 +66,8 @@ x86_64_linux_sigtramp_start (CORE_ADDR pc)
   return pc;
 }
 
+#define LINUX_SIGINFO_SIZE 128
+
 /* Offset to struct sigcontext in ucontext, from <asm/ucontext.h>.  */
 #define LINUX_UCONTEXT_SIGCONTEXT_OFFSET (36)
 
@@ -83,12 +85,12 @@ x86_64_linux_sigcontext_addr (struct frame_info *frame)
        /* If this isn't the top frame, the next frame must be for the
           signal handler itself.  The sigcontext structure is part of
           the user context. */
-       return frame->next->frame + sizeof (struct siginfo) +
+       return frame->next->frame + LINUX_SIGINFO_SIZE +
          LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
 
 
       /* This is the top frame. */
-      return read_register (SP_REGNUM) + sizeof (struct siginfo) +
+      return read_register (SP_REGNUM) + LINUX_SIGINFO_SIZE +
        LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
 
     }
This page took 0.024007 seconds and 4 git commands to generate.