]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdbserver] Drop abbreviations in gdbserver/xtensa-xtregs.cc
authorTom de Vries <tdevries@suse.de>
Thu, 6 Mar 2025 20:08:57 +0000 (21:08 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 6 Mar 2025 20:08:57 +0000 (21:08 +0100)
In gdbserver/xtensa-xtregs.cc, there's a table:
...
const xtensa_regtable_t  xtensa_regmap_table[] = {
  /* gnum,gofs,cpofs,ofs,siz,cp, dbnum,  name */
  {   44, 176,   0,   0,  4, -1, 0x020c, "scompare1" },
  { 0 }
};
...
on which codespell triggers:
...
$ codespell --config ./gdbserver/setup.cfg gdbserver
gdbserver/xtensa-xtregs.cc:34: siz ==> size, six
...

Fix this by laying out the table in vertical fashion, and using the full field
names instead of the abbreviations ("size" instead of "siz", "offset" instead
of "ofs", etc).

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdbserver/xtensa-xtregs.cc

index e7b312207ce0e8fa2636365b86a9bd6983623b6c..b76a9a9ebbff7c6957cbb68e3fe8ff45e4b9dfdb 100644 (file)
@@ -31,7 +31,23 @@ typedef struct {
 #define XTENSA_ELF_XTREG_SIZE  4
 
 const xtensa_regtable_t  xtensa_regmap_table[] = {
-  /* gnum,gofs,cpofs,ofs,siz,cp, dbnum,  name */
-  {   44, 176,   0,   0,  4, -1, 0x020c, "scompare1" },
+  {
+    /* gdb_regnum */
+    44,
+    /* gdb_offset */
+    176,
+    /* ptrace_cp_offset */
+    0,
+    /* ptrace_offset */
+    0,
+    /* size */
+    4,
+    /* coproc */
+    -1,
+    /* dbnum */
+    0x020c,
+    /* name */
+    "scompare1"
+  },
   { 0 }
 };