aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-02-06 20:24:50 +0000
committerMark Kettenis <kettenis@gnu.org>2004-02-06 20:24:50 +0000
commit9fbfb822017ec85391b58313c8668efcb521e447 (patch)
tree669c007f35001b5349ff961e1facae6cbc8f6232 /gdb/i386-linux-tdep.c
parentd3efc286977aa8469ca4ba9a1aaf0a396fb460dc (diff)
downloadgdb-9fbfb822017ec85391b58313c8668efcb521e447.zip
gdb-9fbfb822017ec85391b58313c8668efcb521e447.tar.gz
gdb-9fbfb822017ec85391b58313c8668efcb521e447.tar.bz2
* i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
of UCONTEXT_ADDR. Fixes PR backtrace/1545.
Diffstat (limited to 'gdb/i386-linux-tdep.c')
-rw-r--r--gdb/i386-linux-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index 50073b1..768a5b6 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -274,7 +274,7 @@ i386_linux_sigcontext_addr (struct frame_info *next_frame)
pointer to the user context is passed as the third argument
to the signal handler. */
read_memory (sp + 8, buf, 4);
- ucontext_addr = extract_unsigned_integer (buf, 4) + 20;
+ ucontext_addr = extract_unsigned_integer (buf, 4);
return ucontext_addr + I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
}