diff options
author | Mark Kettenis <kettenis@gnu.org> | 2008-08-09 08:15:26 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2008-08-09 08:15:26 +0000 |
commit | 60644298799d86dd99476bc890ea484a043daee1 (patch) | |
tree | 4122990329e4a0b33b398c5db5de7ff87c363807 /gdb/i386obsd-nat.c | |
parent | 9277a7a6e5d1a004ec41e522eafaacd1f4c4131d (diff) | |
download | gdb-60644298799d86dd99476bc890ea484a043daee1.tar.gz |
* i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
the %eip register.
Diffstat (limited to 'gdb/i386obsd-nat.c')
-rw-r--r-- | gdb/i386obsd-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |