aboutsummaryrefslogtreecommitdiff
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
commit46019f27748f9bfd2f50cee4e281d57c82da791b (patch)
tree8f7c1fee28ab5941bce39b982459d7cfb37afb88 /gdb/i386-nto-tdep.c
parent5cb2c7c4476181a521d3f68e4c9c3ada7404f1ea (diff)
downloadgdb-46019f27748f9bfd2f50cee4e281d57c82da791b.zip
gdb-46019f27748f9bfd2f50cee4e281d57c82da791b.tar.gz
gdb-46019f27748f9bfd2f50cee4e281d57c82da791b.tar.bz2
* 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 381119f..4047f42 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);