aboutsummaryrefslogtreecommitdiff
path: root/gdb/vax-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/vax-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/vax-bsd-nat.c')
-rw-r--r--gdb/vax-bsd-nat.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c
index b6c4e5a..ad156ec 100644
--- a/gdb/vax-bsd-nat.c
+++ b/gdb/vax-bsd-nat.c
@@ -45,7 +45,7 @@ static vax_bsd_nat_target the_vax_bsd_nat_target;
static void
vaxbsd_supply_gregset (struct regcache *regcache, const void *gregs)
{
- const gdb_byte *regs = (const gdb_byte *)gregs;
+ const gdb_byte *regs = (const gdb_byte *) gregs;
int regnum;
for (regnum = 0; regnum < VAX_NUM_REGS; regnum++)
@@ -56,10 +56,10 @@ vaxbsd_supply_gregset (struct regcache *regcache, const void *gregs)
in GREGS. */
static void
-vaxbsd_collect_gregset (const struct regcache *regcache,
- void *gregs, int regnum)
+vaxbsd_collect_gregset (const struct regcache *regcache, void *gregs,
+ int regnum)
{
- gdb_byte *regs = (void *)gregs;
+ gdb_byte *regs = (void *) gregs;
int i;
for (i = 0; i <= VAX_NUM_REGS; i++)
@@ -68,7 +68,6 @@ vaxbsd_collect_gregset (const struct regcache *regcache,
regcache->raw_collect (i, regs + i * 4);
}
}
-
/* Fetch register REGNUM from the inferior. If REGNUM is -1, do this
for all registers. */
@@ -81,7 +80,7 @@ vax_bsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
int lwp = regcache->ptid ().lwp ();
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"));
vaxbsd_supply_gregset (regcache, &regs);
}
@@ -97,14 +96,13 @@ vax_bsd_nat_target::store_registers (struct regcache *regcache, int regnum)
int lwp = regcache->ptid ().lwp ();
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"));
vaxbsd_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"));
}
-
/* Support for debugging kernel virtual memory images. */
@@ -138,6 +136,7 @@ vaxbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
}
void _initialize_vaxbsd_nat ();
+
void
_initialize_vaxbsd_nat ()
{