From: Luis Machado Date: Tue, 25 Feb 2020 00:04:05 +0000 (-0300) Subject: Update GDB to use new AUXV entry types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb7b70ab85fb9d185d1fa6bad192c90fe9c17ff3;p=binutils-gdb.git 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 * auxv.c (default_print_auxv_entry): Add new AUXV entries. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 89eff2931e5..2400982e504 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-03-03 Luis Machado + + * auxv.c (default_print_auxv_entry): Add new AUXV entries. + 2020-03-02 Simon Marchi * infrun.c (gdbarch_supports_displaced_stepping): New. diff --git a/gdb/auxv.c b/gdb/auxv.c index eb1233527e5..c13d7a22eb9 100644 --- a/gdb/auxv.c +++ b/gdb/auxv.c @@ -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);