diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-06-01 16:45:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-06-01 16:45:02 +0000 |
commit | c7f1635919382ad4128474ddace64667b80f8879 (patch) | |
tree | dcb3dc21d48fb9d67ad70e1170fcc341ba8840d3 /gdb/i386-linux-tdep.c | |
parent | 7131cb6efde3fabac3c1d91b1063caf9f84d5037 (diff) | |
download | gdb-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/i386-linux-tdep.c')
-rw-r--r-- | gdb/i386-linux-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c index 13ed1ff..6d284f1 100644 --- a/gdb/i386-linux-tdep.c +++ b/gdb/i386-linux-tdep.c @@ -252,7 +252,7 @@ i386_linux_sigcontext_addr (struct frame_info *next_frame) CORE_ADDR sp; char buf[4]; - frame_unwind_register (next_frame, SP_REGNUM, buf); + frame_unwind_register (next_frame, I386_ESP_REGNUM, buf); sp = extract_unsigned_integer (buf, 4); pc = i386_linux_sigtramp_start (frame_pc_unwind (next_frame)); @@ -291,7 +291,7 @@ i386_linux_sigcontext_addr (struct frame_info *next_frame) static void i386_linux_write_pc (CORE_ADDR pc, ptid_t ptid) { - write_register_pid (PC_REGNUM, pc, ptid); + write_register_pid (I386_EIP_REGNUM, pc, ptid); /* We must be careful with modifying the program counter. If we just interrupted a system call, the kernel might try to restart |