aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68k-bsd-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/m68k-bsd-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/m68k-bsd-nat.c')
-rw-r--r--gdb/m68k-bsd-nat.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c
index 96433e8..3b253ee 100644
--- a/gdb/m68k-bsd-nat.c
+++ b/gdb/m68k-bsd-nat.c
@@ -82,8 +82,8 @@ m68kbsd_supply_fpregset (struct regcache *regcache, const void *fpregs)
in GREGS. */
static void
-m68kbsd_collect_gregset (const struct regcache *regcache,
- void *gregs, int regnum)
+m68kbsd_collect_gregset (const struct regcache *regcache, void *gregs,
+ int regnum)
{
gdb_byte *regs = (gdb_byte *) gregs;
int i;
@@ -99,8 +99,7 @@ m68kbsd_collect_gregset (const struct regcache *regcache,
in FPREGS. */
static void
-m68kbsd_collect_fpregset (struct regcache *regcache,
- void *fpregs, int regnum)
+m68kbsd_collect_fpregset (struct regcache *regcache, void *fpregs, int regnum)
{
struct gdbarch *gdbarch = regcache->arch ();
char *regs = fpregs;
@@ -112,7 +111,6 @@ m68kbsd_collect_fpregset (struct regcache *regcache,
regcache->raw_collect (i, regs + m68kbsd_fpreg_offset (gdbarch, i));
}
}
-
/* Fetch register REGNUM from the inferior. If REGNUM is -1, do this
for all registers (including the floating-point registers). */
@@ -128,7 +126,7 @@ m68k_bsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
struct reg regs;
if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) &regs, lwp) == -1)
- perror_with_name (_("Couldn't get registers"));
+ perror_with_name (_ ("Couldn't get registers"));
m68kbsd_supply_gregset (regcache, &regs);
}
@@ -138,7 +136,7 @@ m68k_bsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
struct fpreg fpregs;
if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
- perror_with_name (_("Couldn't get floating point status"));
+ perror_with_name (_ ("Couldn't get floating point status"));
m68kbsd_supply_fpregset (regcache, &fpregs);
}
@@ -158,12 +156,12 @@ m68k_bsd_nat_target::store_registers (struct regcache *regcache, int regnum)
struct reg regs;
if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) &regs, lwp) == -1)
- perror_with_name (_("Couldn't get registers"));
+ perror_with_name (_ ("Couldn't get registers"));
m68kbsd_collect_gregset (regcache, &regs, regnum);
if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) &regs, lwp) == -1)
- perror_with_name (_("Couldn't write registers"));
+ perror_with_name (_ ("Couldn't write registers"));
}
if (regnum == -1 || m68kbsd_fpregset_supplies_p (regnum))
@@ -171,15 +169,14 @@ m68k_bsd_nat_target::store_registers (struct regcache *regcache, int regnum)
struct fpreg fpregs;
if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
- perror_with_name (_("Couldn't get floating point status"));
+ perror_with_name (_ ("Couldn't get floating point status"));
m68kbsd_collect_fpregset (regcache, &fpregs, regnum);
if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, lwp) == -1)
- perror_with_name (_("Couldn't write floating point status"));
+ perror_with_name (_ ("Couldn't write floating point status"));
}
}
-
/* Support for debugging kernel virtual memory images. */
@@ -227,6 +224,7 @@ m68kbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
}
void _initialize_m68kbsd_nat ();
+
void
_initialize_m68kbsd_nat ()
{