diff options
author | Jiri Smid <smid@suse.cz> | 2001-09-25 10:37:17 +0000 |
---|---|---|
committer | Jiri Smid <smid@suse.cz> | 2001-09-25 10:37:17 +0000 |
commit | c74ae012f5210c27a5f08c3f80814059957559b5 (patch) | |
tree | eaa602da792775c1546d57d1d71db31bb9be0da2 /gdb/x86-64-linux-tdep.c | |
parent | 387019538fefadc659533014b5d73e010f4dc524 (diff) | |
download | gdb-c74ae012f5210c27a5f08c3f80814059957559b5.zip gdb-c74ae012f5210c27a5f08c3f80814059957559b5.tar.gz gdb-c74ae012f5210c27a5f08c3f80814059957559b5.tar.bz2 |
* x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
(x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
by LINUX_SIGINFO_SIZE.
Diffstat (limited to 'gdb/x86-64-linux-tdep.c')
-rw-r--r-- | gdb/x86-64-linux-tdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/x86-64-linux-tdep.c b/gdb/x86-64-linux-tdep.c index 14e78cd..e4df224 100644 --- a/gdb/x86-64-linux-tdep.c +++ b/gdb/x86-64-linux-tdep.c @@ -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; } |