aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-obsd-nat.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/i386-obsd-nat.c
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/i386-obsd-nat.c')
-rw-r--r--gdb/i386-obsd-nat.c7
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 ()
{