aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2008-08-09 08:15:26 +0000
committerMark Kettenis <kettenis@gnu.org>2008-08-09 08:15:26 +0000
commit3979a37f371bb2c208f26a15155ae90dec533228 (patch)
treec7e1a5c9508383debf6609cf6f7b0febfbc3f53f
parent7b21ac3f455e1854e5ca5c82cc64006d3fbdf923 (diff)
downloadgdb-3979a37f371bb2c208f26a15155ae90dec533228.zip
gdb-3979a37f371bb2c208f26a15155ae90dec533228.tar.gz
gdb-3979a37f371bb2c208f26a15155ae90dec533228.tar.bz2
* i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
the %eip register.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/i386obsd-nat.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 82ecc7c..d6169fa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/i386obsd-nat.c b/gdb/i386obsd-nat.c
index 1585efb..016cebd 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);