* gdb/fileio.h: New file.
[deliverable/binutils-gdb.git] / gdb / i386-linux-tdep.c
index 13ed1ffd173384004ada582f016fc00f7be7769d..6d284f1ea98e4d827bb5910bf797428b3c8ee578 100644 (file)
@@ -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
This page took 0.029594 seconds and 4 git commands to generate.