* i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation

of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
This commit is contained in:
Mark Kettenis 2004-02-06 20:24:50 +00:00
parent d3efc28697
commit 9fbfb82201
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-02-06 Mark Kettenis <kettenis@gnu.org>
* i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
of UCONTEXT_ADDR. Fixes PR backtrace/1545.
2004-02-05 Mark Kettenis <kettenis@gnu.org>
* infrun.c (handle_inferior_event): Allow for breakpoint

View file

@ -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;
}