diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/mips-fbsd-nat.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-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/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 () { |