diff options
author | Luis Machado <luis.machado@linaro.org> | 2020-02-24 21:04:05 -0300 |
---|---|---|
committer | Luis Machado <luis.machado@linaro.org> | 2020-03-03 10:29:57 -0300 |
commit | bb7b70ab85fb9d185d1fa6bad192c90fe9c17ff3 (patch) | |
tree | 95e3fe583c3cfb0a53369b8db02d8f469d121a31 /gdb/auxv.c | |
parent | b5ebe8ddf9c9cd1ce272cc9c7de528d41209be9f (diff) | |
download | gdb-bb7b70ab85fb9d185d1fa6bad192c90fe9c17ff3.zip gdb-bb7b70ab85fb9d185d1fa6bad192c90fe9c17ff3.tar.gz gdb-bb7b70ab85fb9d185d1fa6bad192c90fe9c17ff3.tar.bz2 |
Update GDB to use new AUXV entry types
I noticed GDB didn't know a particular AT tag (51) when doing some debugging.
Turns out we're missing a few entries compared to glibc's headers.
This patch adds them to GDB and fixes a failure in gdb.base/auxv.exp as
a result.
gdb/ChangeLog:
2020-03-03 Luis Machado <luis.machado@linaro.org>
* auxv.c (default_print_auxv_entry): Add new AUXV entries.
Diffstat (limited to 'gdb/auxv.c')
-rw-r--r-- | gdb/auxv.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -458,9 +458,21 @@ default_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file, AUXV_FORMAT_HEX); TAG (AT_L1I_CACHESHAPE, _("L1 Instruction cache information"), AUXV_FORMAT_HEX); + TAG (AT_L1I_CACHESIZE, _("L1 Instruction cache size"), AUXV_FORMAT_HEX); + TAG (AT_L1I_CACHEGEOMETRY, _("L1 Instruction cache geometry"), + AUXV_FORMAT_HEX); TAG (AT_L1D_CACHESHAPE, _("L1 Data cache information"), AUXV_FORMAT_HEX); + TAG (AT_L1D_CACHESIZE, _("L1 Data cache size"), AUXV_FORMAT_HEX); + TAG (AT_L1D_CACHEGEOMETRY, _("L1 Data cache geometry"), + AUXV_FORMAT_HEX); TAG (AT_L2_CACHESHAPE, _("L2 cache information"), AUXV_FORMAT_HEX); + TAG (AT_L2_CACHESIZE, _("L2 cache size"), AUXV_FORMAT_HEX); + TAG (AT_L2_CACHEGEOMETRY, _("L2 cache geometry"), AUXV_FORMAT_HEX); TAG (AT_L3_CACHESHAPE, _("L3 cache information"), AUXV_FORMAT_HEX); + TAG (AT_L3_CACHESIZE, _("L3 cache size"), AUXV_FORMAT_HEX); + TAG (AT_L3_CACHEGEOMETRY, _("L3 cache geometry"), AUXV_FORMAT_HEX); + TAG (AT_MINSIGSTKSZ, _("Minimum stack size for signal delivery"), + AUXV_FORMAT_HEX); TAG (AT_SUN_UID, _("Effective user ID"), AUXV_FORMAT_DEC); TAG (AT_SUN_RUID, _("Real user ID"), AUXV_FORMAT_DEC); TAG (AT_SUN_GID, _("Effective group ID"), AUXV_FORMAT_DEC); |