aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-obsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/hppa-obsd-nat.c')
-rw-r--r--gdb/hppa-obsd-nat.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/gdb/hppa-obsd-nat.c b/gdb/hppa-obsd-nat.c
index 9c2788e..d82e292 100644
--- a/gdb/hppa-obsd-nat.c
+++ b/gdb/hppa-obsd-nat.c
@@ -64,7 +64,7 @@ hppaobsd_supply_gregset (struct regcache *regcache, const void *gregs)
for (regnum = HPPA_R1_REGNUM; regnum <= HPPA_R31_REGNUM; regnum++)
regcache->raw_supply (regnum, regs + regnum * 4);
- if (sizeof(struct reg) >= 46 * 4)
+ if (sizeof (struct reg) >= 46 * 4)
{
regcache->raw_supply (HPPA_IPSW_REGNUM, regs);
regcache->raw_supply (HPPA_SAR_REGNUM, regs + 32 * 4);
@@ -82,7 +82,7 @@ hppaobsd_supply_gregset (struct regcache *regcache, const void *gregs)
regcache->raw_supply (HPPA_SR7_REGNUM, regs + 44 * 4);
regcache->raw_supply (HPPA_CR26_REGNUM, regs + 45 * 4);
regcache->raw_supply (HPPA_CR27_REGNUM, regs + 46 * 4);
- }
+ }
else
{
regcache->raw_supply (HPPA_SAR_REGNUM, regs);
@@ -111,8 +111,8 @@ hppaobsd_supply_fpregset (struct regcache *regcache, const void *fpregs)
in GREGS. */
static void
-hppaobsd_collect_gregset (const struct regcache *regcache,
- void *gregs, int regnum)
+hppaobsd_collect_gregset (const struct regcache *regcache, void *gregs,
+ int regnum)
{
char *regs = gregs;
int i;
@@ -123,7 +123,7 @@ hppaobsd_collect_gregset (const struct regcache *regcache,
regcache->raw_collect (i, regs + i * 4);
}
- if (sizeof(struct reg) >= 46 * 4)
+ if (sizeof (struct reg) >= 46 * 4)
{
if (regnum == -1 || regnum == HPPA_IPSW_REGNUM)
regcache->raw_collect (HPPA_IPSW_REGNUM, regs);
@@ -173,8 +173,7 @@ hppaobsd_collect_gregset (const struct regcache *regcache,
in FPREGS. */
static void
-hppaobsd_collect_fpregset (struct regcache *regcache,
- void *fpregs, int regnum)
+hppaobsd_collect_fpregset (struct regcache *regcache, void *fpregs, int regnum)
{
char *regs = fpregs;
int i;
@@ -188,7 +187,6 @@ hppaobsd_collect_fpregset (struct regcache *regcache,
}
}
}
-
/* Fetch register REGNUM from the inferior. If REGNUM is -1, do this
for all registers (including the floating-point registers). */
@@ -203,7 +201,7 @@ hppa_obsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
struct reg regs;
if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) &regs, 0) == -1)
- perror_with_name (_("Couldn't get registers"));
+ perror_with_name (_ ("Couldn't get registers"));
hppaobsd_supply_gregset (regcache, &regs);
}
@@ -213,7 +211,7 @@ hppa_obsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
struct fpreg fpregs;
if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
- perror_with_name (_("Couldn't get floating point status"));
+ perror_with_name (_ ("Couldn't get floating point status"));
hppaobsd_supply_fpregset (regcache, &fpregs);
}
@@ -230,12 +228,12 @@ hppa_obsd_nat_target::store_registers (struct regcache *regcache, int regnum)
struct reg regs;
if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) &regs, 0) == -1)
- perror_with_name (_("Couldn't get registers"));
+ perror_with_name (_ ("Couldn't get registers"));
hppaobsd_collect_gregset (regcache, &regs, regnum);
if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) &regs, 0) == -1)
- perror_with_name (_("Couldn't write registers"));
+ perror_with_name (_ ("Couldn't write registers"));
}
if (regnum == -1 || hppaobsd_fpregset_supplies_p (regnum))
@@ -243,16 +241,17 @@ hppa_obsd_nat_target::store_registers (struct regcache *regcache, int regnum)
struct fpreg fpregs;
if (ptrace (PT_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
- perror_with_name (_("Couldn't get floating point status"));
+ perror_with_name (_ ("Couldn't get floating point status"));
hppaobsd_collect_fpregset (regcache, &fpregs, regnum);
if (ptrace (PT_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
- perror_with_name (_("Couldn't write floating point status"));
+ perror_with_name (_ ("Couldn't write floating point status"));
}
}
void _initialize_hppaobsd_nat ();
+
void
_initialize_hppaobsd_nat ()
{