From: Mark Kettenis Date: Sat, 9 Aug 2008 08:15:26 +0000 (+0000) Subject: * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3979a37f371bb2c208f26a15155ae90dec533228;p=binutils-gdb.git * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for the %eip register. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 82ecc7ce6ee..d6169fa8cd6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-08-09 Mark Kettenis + + * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for + the %eip register. + 2008-08-08 Tom Tromey * Makefile.in (python.o): Remove dependencies. Use COMPILE and diff --git a/gdb/i386obsd-nat.c b/gdb/i386obsd-nat.c index 1585efb94ba..016cebd86c9 100644 --- a/gdb/i386obsd-nat.c +++ b/gdb/i386obsd-nat.c @@ -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);