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/mips64-obsd-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/mips64-obsd-nat.c')
-rw-r--r-- | gdb/mips64-obsd-nat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/mips64-obsd-nat.c b/gdb/mips64-obsd-nat.c index f17cab6..681ccc2 100644 --- a/gdb/mips64-obsd-nat.c +++ b/gdb/mips64-obsd-nat.c @@ -31,8 +31,8 @@ #include "obsd-nat.h" /* Shorthand for some register numbers used below. */ -#define MIPS_PC_REGNUM MIPS_EMBED_PC_REGNUM -#define MIPS_FP0_REGNUM MIPS_EMBED_FP0_REGNUM +#define MIPS_PC_REGNUM MIPS_EMBED_PC_REGNUM +#define MIPS_FP0_REGNUM MIPS_EMBED_FP0_REGNUM #define MIPS_FSR_REGNUM MIPS_EMBED_FP0_REGNUM + 32 struct mips64_obsd_nat_target final : public obsd_nat_target @@ -62,8 +62,8 @@ mips64obsd_supply_gregset (struct regcache *regcache, const void *gregs) in GREGS. */ static void -mips64obsd_collect_gregset (const struct regcache *regcache, - void *gregs, int regnum) +mips64obsd_collect_gregset (const struct regcache *regcache, void *gregs, + int regnum) { char *regs = gregs; int i; @@ -80,7 +80,6 @@ mips64obsd_collect_gregset (const struct regcache *regcache, regcache->raw_collect (i, regs + (i + 2) * 8); } } - /* Fetch register REGNUM from the inferior. If REGNUM is -1, do this for all registers. */ @@ -92,7 +91,7 @@ mips64_obsd_nat_target::fetch_registers (struct regcache *regcache, int regnum) pid_t pid = regcache->ptid ().pid (); 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")); mips64obsd_supply_gregset (regcache, ®s); } @@ -107,15 +106,16 @@ mips64_obsd_nat_target::store_registers (struct regcache *regcache, int regnum) pid_t pid = regcache->ptid ().pid (); 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")); mips64obsd_collect_gregset (regcache, ®s, regnum); 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")); } void _initialize_mips64obsd_nat (); + void _initialize_mips64obsd_nat () { |