diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-06-22 01:03:04 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-06 21:29:11 -0400 |
commit | 7a3bb62d82631ff042525b7115d9e03a7329e7be (patch) | |
tree | aa1b5923bdf79363b299115dfee0b21f81a0cc13 /gdb | |
parent | 08330ace11fb41a1d014858b9909f73aeb856da9 (diff) | |
download | gdb-7a3bb62d82631ff042525b7115d9e03a7329e7be.zip gdb-7a3bb62d82631ff042525b7115d9e03a7329e7be.tar.gz gdb-7a3bb62d82631ff042525b7115d9e03a7329e7be.tar.bz2 |
gdb: support rseq auxvs
Linux kernel commit commit 317c8194e6ae ("rseq: Introduce feature size
and alignment ELF auxiliary vector entries") introduced two new auxvs:
AT_RSEQ_FEATURE_SIZE and AT_RSEQ_ALIGN. Support them in GDB. This
fixes auxv.exp on kernels >= v6.3.
Change-Id: I8966c4d5c73eb7b45de6d410a9b28a6628edad2e
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30540
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/auxv.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -495,6 +495,10 @@ 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_RSEQ_FEATURE_SIZE, _("rseq supported feature size"), + AUXV_FORMAT_DEC); + TAG (AT_RSEQ_ALIGN, _("rseq allocation alignment"), + AUXV_FORMAT_DEC); TAG (AT_EXECFN, _("File name of executable"), AUXV_FORMAT_STR); TAG (AT_SECURE, _("Boolean, was exec setuid-like?"), AUXV_FORMAT_DEC); TAG (AT_SYSINFO, _("Special system info/entry points"), AUXV_FORMAT_HEX); |