aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-bsd-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/arm-bsd-tdep.c
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-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/arm-bsd-tdep.c')
-rw-r--r--gdb/arm-bsd-tdep.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/gdb/arm-bsd-tdep.c b/gdb/arm-bsd-tdep.c
index 1f708c7..e86e7c6 100644
--- a/gdb/arm-bsd-tdep.c
+++ b/gdb/arm-bsd-tdep.c
@@ -27,10 +27,10 @@
/* Core file support. */
/* Sizeof `struct reg' in <machine/reg.h>. */
-#define ARMBSD_SIZEOF_GREGS (17 * 4)
+#define ARMBSD_SIZEOF_GREGS (17 * 4)
/* Sizeof `struct fpreg' in <machine/reg.h. */
-#define ARMBSD_SIZEOF_FPREGS ((1 + (8 * 3)) * 4)
+#define ARMBSD_SIZEOF_FPREGS ((1 + (8 * 3)) * 4)
static int
armbsd_fpreg_offset (int regnum)
@@ -46,8 +46,7 @@ armbsd_fpreg_offset (int regnum)
REGCACHE. If REGNUM is -1, do this for all registers in REGSET. */
static void
-armbsd_supply_fpregset (const struct regset *regset,
- struct regcache *regcache,
+armbsd_supply_fpregset (const struct regset *regset, struct regcache *regcache,
int regnum, const void *fpregs, size_t len)
{
const gdb_byte *regs = (const gdb_byte *) fpregs;
@@ -67,8 +66,7 @@ armbsd_supply_fpregset (const struct regset *regset,
REGCACHE. If REGNUM is -1, do this for all registers in REGSET. */
static void
-armbsd_supply_gregset (const struct regset *regset,
- struct regcache *regcache,
+armbsd_supply_gregset (const struct regset *regset, struct regcache *regcache,
int regnum, const void *gregs, size_t len)
{
const gdb_byte *regs = (const gdb_byte *) gregs;
@@ -95,19 +93,10 @@ armbsd_supply_gregset (const struct regset *regset,
/* ARM register sets. */
-static const struct regset armbsd_gregset =
-{
- NULL,
- armbsd_supply_gregset,
- NULL,
- REGSET_VARIABLE_SIZE
-};
+static const struct regset armbsd_gregset
+ = { NULL, armbsd_supply_gregset, NULL, REGSET_VARIABLE_SIZE };
-static const struct regset armbsd_fpregset =
-{
- NULL,
- armbsd_supply_fpregset
-};
+static const struct regset armbsd_fpregset = { NULL, armbsd_supply_fpregset };
/* Iterate over supported core file register note sections. */