aboutsummaryrefslogtreecommitdiff
path: root/gdb/vax-bsd-nat.c
diff options
context:
space:
mode:
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 ()
{