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.
This commit is contained in:
Luis Machado 2020-02-24 21:04:05 -03:00
parent b5ebe8ddf9
commit bb7b70ab85
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2020-03-03 Luis Machado <luis.machado@linaro.org>
* auxv.c (default_print_auxv_entry): Add new AUXV entries.
2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
* infrun.c (gdbarch_supports_displaced_stepping): New.

View File

@ -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);