]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Update GDB to use new AUXV entry types
authorLuis Machado <luis.machado@linaro.org>
Tue, 25 Feb 2020 00:04:05 +0000 (21:04 -0300)
committerLuis Machado <luis.machado@linaro.org>
Tue, 3 Mar 2020 13:29:57 +0000 (10:29 -0300)
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.

gdb/ChangeLog
gdb/auxv.c

index 89eff2931e55a09c1cfe59cbbd2b54b78adc0a83..2400982e5040fd4772c9ee8bba86a570b58f17ca 100644 (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.
index eb1233527e50beb284a1805f28e7d9f6d12f4e9b..c13d7a22eb988bbeb55bd54d0f7204baa71e50c1 100644 (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);