aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386bsd-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-06-01 16:45:02 +0000
committerMark Kettenis <kettenis@gnu.org>2003-06-01 16:45:02 +0000
commitc7f1635919382ad4128474ddace64667b80f8879 (patch)
treedcb3dc21d48fb9d67ad70e1170fcc341ba8840d3 /gdb/i386bsd-tdep.c
parent7131cb6efde3fabac3c1d91b1063caf9f84d5037 (diff)
downloadgdb-c7f1635919382ad4128474ddace64667b80f8879.zip
gdb-c7f1635919382ad4128474ddace64667b80f8879.tar.gz
gdb-c7f1635919382ad4128474ddace64667b80f8879.tar.bz2
* i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
SP_REGNUM. * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise. * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
Diffstat (limited to 'gdb/i386bsd-tdep.c')
-rw-r--r--gdb/i386bsd-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386bsd-tdep.c b/gdb/i386bsd-tdep.c
index 80e057b..94d6860 100644
--- a/gdb/i386bsd-tdep.c
+++ b/gdb/i386bsd-tdep.c
@@ -50,7 +50,7 @@ i386bsd_sigcontext_addr (struct frame_info *next_frame)
char buf[4];
CORE_ADDR sp;
- frame_unwind_register (next_frame, SP_REGNUM, buf);
+ frame_unwind_register (next_frame, I386_ESP_REGNUM, buf);
sp = extract_unsigned_integer (buf, 4);
return read_memory_unsigned_integer (sp + 8, 4);