From 9fbfb822017ec85391b58313c8668efcb521e447 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 6 Feb 2004 20:24:50 +0000 Subject: [PATCH] * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation of UCONTEXT_ADDR. Fixes PR backtrace/1545. --- gdb/ChangeLog | 5 +++++ gdb/i386-linux-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7af44168371..5f10e413a8d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-02-06 Mark Kettenis + + * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation + of UCONTEXT_ADDR. Fixes PR backtrace/1545. + 2004-02-05 Mark Kettenis * infrun.c (handle_inferior_event): Allow for breakpoint diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c index 50073b1239f..768a5b6a78b 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; } -- 2.30.2