summaryrefslogtreecommitdiff
path: root/gdb/i386-nto-tdep.c
diff options
context:
space:
mode:
authorKris Warkentin <kewarken@qnx.com>2003-06-17 17:38:32 +0000
committerKris Warkentin <kewarken@qnx.com>2003-06-17 17:38:32 +0000
commitb130cca4dc1f48429a0a777041f56f67fb8f5abe (patch)
tree01412d44c1bd0874d30cf03489476f441aaaed8d /gdb/i386-nto-tdep.c
parent17a6ca5019d95b05e4299f1e8574c88116dfc16d (diff)
downloadgdb-b130cca4dc1f48429a0a777041f56f67fb8f5abe.tar.gz
* i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
Diffstat (limited to 'gdb/i386-nto-tdep.c')
-rw-r--r--gdb/i386-nto-tdep.c1
1 files changed, 1 insertions, 0 deletions
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);