* i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
authorMark Kettenis <kettenis@gnu.org>
Sat, 9 Aug 2008 08:15:26 +0000 (08:15 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sat, 9 Aug 2008 08:15:26 +0000 (08:15 +0000)
the %eip register.

gdb/ChangeLog
gdb/i386obsd-nat.c

index 82ecc7ce6eed4f0ebcfafd6b44649c12fa124470..d6169fa8cd689dad24b8eac9887cdc51c931f25f 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-09  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
+       the %eip register.
+
 2008-08-08  Tom Tromey  <tromey@redhat.com>
 
        * Makefile.in (python.o): Remove dependencies.  Use COMPILE and
index 1585efb94ba220f8207a010d5842fbcdbc03c6b7..016cebd86c9f520c448e2321d26d064ad52618f8 100644 (file)
@@ -78,7 +78,7 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
       pcb->pcb_esp = pcb->pcb_ebp;
       pcb->pcb_ebp = read_memory_integer(pcb->pcb_esp, 4);
       sf.sf_eip = read_memory_integer(pcb->pcb_esp + 4, 4);
-      regcache_raw_supply (regcache, I386_EIP_REGNUM, &sf);
+      regcache_raw_supply (regcache, I386_EIP_REGNUM, &sf.sf_eip);
     }
 
   regcache_raw_supply (regcache, I386_EBP_REGNUM, &pcb->pcb_ebp);