From 46019f27748f9bfd2f50cee4e281d57c82da791b Mon Sep 17 00:00:00 2001 From: Kris Warkentin Date: Tue, 17 Jun 2003 17:38:32 +0000 Subject: [PATCH] * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using. --- gdb/ChangeLog | 4 ++++ gdb/i386-nto-tdep.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 47e663fd3a3..732ebc3d551 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-06-17 Kris Warkentin + + * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using. + 2003-06-17 Jim Blandy * ppc-linux-tdep.c: "Linux" -> "GNU/Linux" diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c index 381119f7033..4047f42b017 100644 --- a/gdb/i386-nto-tdep.c +++ b/gdb/i386-nto-tdep.c @@ -240,6 +240,7 @@ static CORE_ADDR i386nto_sigcontext_addr (struct frame_info *next_frame) { char buf[4]; + unsigned sp; frame_unwind_register (next_frame, SP_REGNUM, buf); sp = extract_unsigned_integer (buf, 4); -- 2.30.2