mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 04:24:43 +00:00
[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:
@@ -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 }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user