diff options
Diffstat (limited to 'gdb/i386-obsd-nat.c')
-rw-r--r-- | gdb/i386-obsd-nat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/i386-obsd-nat.c b/gdb/i386-obsd-nat.c index 4b70e6d..61709ae 100644 --- a/gdb/i386-obsd-nat.c +++ b/gdb/i386-obsd-nat.c @@ -58,7 +58,7 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) if (pcb->pcb_esp == 0) return 0; - /* Read the stack frame, and check its validity. We do this by + /* Read the stack frame, and check its validity. We do this by checking if the saved interrupt priority level in the stack frame looks reasonable.. */ #ifdef PCB_SAVECTX @@ -77,8 +77,8 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) { /* No, the pcb must have been last updated by savectx(). */ pcb->pcb_esp = pcb->pcb_ebp; - pcb->pcb_ebp = read_memory_integer(pcb->pcb_esp, 4, byte_order); - sf.sf_eip = read_memory_integer(pcb->pcb_esp + 4, 4, byte_order); + pcb->pcb_ebp = read_memory_integer (pcb->pcb_esp, 4, byte_order); + sf.sf_eip = read_memory_integer (pcb->pcb_esp + 4, 4, byte_order); regcache->raw_supply (I386_EIP_REGNUM, &sf.sf_eip); } @@ -91,6 +91,7 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) static i386_bsd_nat_target<obsd_nat_target> the_i386_obsd_nat_target; void _initialize_i386obsd_nat (); + void _initialize_i386obsd_nat () { |