aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.c
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2020-02-24 21:04:05 -0300
committerLuis Machado <luis.machado@linaro.org>2020-03-03 10:29:57 -0300
commitbb7b70ab85fb9d185d1fa6bad192c90fe9c17ff3 (patch)
tree95e3fe583c3cfb0a53369b8db02d8f469d121a31 /gdb/auxv.c
parentb5ebe8ddf9c9cd1ce272cc9c7de528d41209be9f (diff)
downloadgdb-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.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/auxv.c b/gdb/auxv.c
index eb12335..c13d7a2 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);