* i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for

the %eip register.
This commit is contained in:
Mark Kettenis
2008-08-09 08:15:26 +00:00
parent 7b21ac3f45
commit 3979a37f37
2 changed files with 6 additions and 1 deletions

View 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);