]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] Handle AT_HWCAP3/AT_HWCAP4 in default_print_auxv_entry
authorTom de Vries <tdevries@suse.de>
Fri, 16 Jan 2026 19:14:51 +0000 (20:14 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 16 Jan 2026 19:14:51 +0000 (20:14 +0100)
On aarch64-linux, I run into:
...
(gdb) info auxv^M
  ...
26   AT_HWCAP2            Extension of AT_HWCAP          0x181^M
29   ???                                                 0x0^M
31   AT_EXECFN            File name of executable        0xffffffffffb9 ...
  ...
28   AT_RSEQ_ALIGN        rseq allocation alignment      32^M
0    AT_NULL              End of vector                  0x0^M
(gdb) WARNING: Unrecognized tag value: 29 ... ??? ... 0x0^M
FAIL: gdb.base/auxv.exp: info auxv on live process
...

Fix this by handling AT_HWCAP3 in default_print_auxv_entry.  Likewise for
AT_HWCAP4.

Tested on aarch64-linux.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32590

gdb/auxv.c

index 368e0aa2c2bba52e9054b50b04557db780cbb6f3..59f38d3cf49fff9ad65e3d05356cda7de8f2ce60 100644 (file)
@@ -497,6 +497,8 @@ default_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file,
           AUXV_FORMAT_STR);
       TAG (AT_RANDOM, _("Address of 16 random bytes"), AUXV_FORMAT_HEX);
       TAG (AT_HWCAP2, _("Extension of AT_HWCAP"), AUXV_FORMAT_HEX);
+      TAG (AT_HWCAP3, _("Extension of AT_HWCAP"), AUXV_FORMAT_HEX);
+      TAG (AT_HWCAP4, _("Extension of AT_HWCAP"), AUXV_FORMAT_HEX);
       TAG (AT_RSEQ_FEATURE_SIZE, _("rseq supported feature size"),
           AUXV_FORMAT_DEC);
       TAG (AT_RSEQ_ALIGN, _("rseq allocation alignment"),