return pc;
}
+#define LINUX_SIGINFO_SIZE 128
+
/* Offset to struct sigcontext in ucontext, from <asm/ucontext.h>. */
#define LINUX_UCONTEXT_SIGCONTEXT_OFFSET (36)
/* 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;
}