diff options
Diffstat (limited to 'gdb/mips-fbsd-nat.c')
-rw-r--r-- | gdb/mips-fbsd-nat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/mips-fbsd-nat.c b/gdb/mips-fbsd-nat.c index 46fdc37..2d237a1 100644 --- a/gdb/mips-fbsd-nat.c +++ b/gdb/mips-fbsd-nat.c @@ -44,8 +44,7 @@ static mips_fbsd_nat_target the_mips_fbsd_nat_target; static bool getregs_supplies (struct gdbarch *gdbarch, int regnum) { - return (regnum >= MIPS_ZERO_REGNUM - && regnum <= mips_regnum (gdbarch)->pc); + return (regnum >= MIPS_ZERO_REGNUM && regnum <= mips_regnum (gdbarch)->pc); } /* Determine if PT_GETFPREGS fetches REGNUM. */ @@ -71,7 +70,7 @@ mips_fbsd_nat_target::fetch_registers (struct regcache *regcache, int regnum) struct reg regs; if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) - perror_with_name (_("Couldn't get registers")); + perror_with_name (_ ("Couldn't get registers")); mips_fbsd_supply_gregs (regcache, regnum, ®s, sizeof (register_t)); } @@ -81,7 +80,7 @@ mips_fbsd_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")); mips_fbsd_supply_fpregs (regcache, regnum, &fpregs, sizeof (f_register_t)); @@ -102,13 +101,13 @@ mips_fbsd_nat_target::store_registers (struct regcache *regcache, int regnum) struct reg regs; if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) - perror_with_name (_("Couldn't get registers")); + perror_with_name (_ ("Couldn't get registers")); mips_fbsd_collect_gregs (regcache, regnum, (char *) ®s, sizeof (register_t)); if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) - perror_with_name (_("Couldn't write registers")); + perror_with_name (_ ("Couldn't write registers")); } if (regnum == -1 || getfpregs_supplies (gdbarch, regnum)) @@ -116,17 +115,18 @@ mips_fbsd_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")); mips_fbsd_collect_fpregs (regcache, regnum, (char *) &fpregs, sizeof (f_register_t)); 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_mips_fbsd_nat (); + void _initialize_mips_fbsd_nat () { |