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