[gdbserver] Drop abbreviations in gdbserver/xtensa-xtregs.cc

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>
This commit is contained in:
Tom de Vries
2025-03-06 21:08:57 +01:00
parent 78dd36b8f2
commit fd28119aca

View 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 }
};