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/sparc64-linux-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/sparc64-linux-nat.c')
-rw-r--r-- | gdb/sparc64-linux-nat.c | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/gdb/sparc64-linux-nat.c b/gdb/sparc64-linux-nat.c index eb6730e..a82e292 100644 --- a/gdb/sparc64-linux-nat.c +++ b/gdb/sparc64-linux-nat.c @@ -33,35 +33,40 @@ class sparc64_linux_nat_target final : public linux_nat_target { public: + /* Add our register access methods. */ void fetch_registers (struct regcache *regcache, int regnum) override - { sparc_fetch_inferior_registers (this, regcache, regnum); } + { + sparc_fetch_inferior_registers (this, regcache, regnum); + } void store_registers (struct regcache *regcache, int regnum) override - { sparc_store_inferior_registers (this, regcache, regnum); } + { + sparc_store_inferior_registers (this, regcache, regnum); + } /* Override linux_nat_target low methods. */ /* ADI support */ void low_forget_process (pid_t pid) override - { sparc64_forget_process (pid); } + { + sparc64_forget_process (pid); + } }; static sparc64_linux_nat_target the_sparc64_linux_nat_target; -static const struct sparc_gregmap sparc64_linux_ptrace_gregmap = -{ - 16 * 8, /* "tstate" */ - 17 * 8, /* %pc */ - 18 * 8, /* %npc */ - 19 * 8, /* %y */ - -1, /* %wim */ - -1, /* %tbr */ - 0 * 8, /* %g1 */ - -1, /* %l0 */ - 4 /* sizeof (%y) */ +static const struct sparc_gregmap sparc64_linux_ptrace_gregmap = { + 16 * 8, /* "tstate" */ + 17 * 8, /* %pc */ + 18 * 8, /* %npc */ + 19 * 8, /* %y */ + -1, /* %wim */ + -1, /* %tbr */ + 0 * 8, /* %g1 */ + -1, /* %l0 */ + 4 /* sizeof (%y) */ }; - void supply_gregset (struct regcache *regcache, const prgregset_t *gregs) @@ -82,13 +87,14 @@ fill_gregset (const struct regcache *regcache, prgregset_t *gregs, int regnum) } void -fill_fpregset (const struct regcache *regcache, - prfpregset_t *fpregs, int regnum) +fill_fpregset (const struct regcache *regcache, prfpregset_t *fpregs, + int regnum) { sparc64_collect_fpregset (&sparc64_bsd_fpregmap, regcache, regnum, fpregs); } void _initialize_sparc64_linux_nat (); + void _initialize_sparc64_linux_nat () { |