7cb3ecbb8b
* gdb-rhbz1773651-gdb-index-internal-error.patch - Patches added (backport from master): * gdb-support-rseq-auxvs.patch * gdb-symtab-fix-line-number-of-static-const-class-mem.patch * gdb-symtab-fix-too-many-symbols-in-gdbpy_lookup_stat.patch * gdb-symtab-handle-pu-in-iterate_over_some_symtabs.patch * gdb-symtab-work-around-pr-gas-29517.patch * gdb-testsuite-add-kfail-for-pr-ada-30908.patch * gdb-testsuite-add-xfail-for-gdb-29965-in-gdb.threads.patch * gdb-testsuite-fix-gdb.ada-mi_task_arg.exp-with-newer.patch * gdb-testsuite-fix-gdb.arch-i386-signal.exp-on-x86_64.patch * gdb-testsuite-fix-gdb.cp-m-static.exp-regression-on-.patch * gdb-testsuite-fix-gdb.dwarf2-nullptr_t.exp-with-cc-w.patch * gdb-testsuite-fix-regexps-in-gdb.base-step-over-sysc.patch * gdb-symtab-find-main-language-without-symtab-expansi.patch * gdb-testsuite-add-wait-for-index-cache-in-gdb.dwarf2.patch - Patches moved (from "Backport from gdb-patches" to "Backports from master, available in next release"): * gdb-cli-handle-pending-c-after-rl_callback_read_char.patch * gdb-testsuite-add-have_host_locale.patch - Maintenance script qa.sh: * Remove PR28463, PR28108, PR29247 and PR29160 kfails. * Remove PR30540, PR30908, PR29965 kfails. * Remove gdb.ada/mi_task_arg.exp kfail. - Limit "Suggests: %{python}-Pygments" to SLE-15 and later. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=365
46 lines
1.9 KiB
Diff
46 lines
1.9 KiB
Diff
From 1bbcd2144710c4b1daa9c404df0ebc80c3461747 Mon Sep 17 00:00:00 2001
|
|
From: Ilya Leoshkevich <iii@linux.ibm.com>
|
|
Date: Thu, 22 Jun 2023 01:03:04 +0200
|
|
Subject: [PATCH 11/12] 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.
|
|
---
|
|
gdb/auxv.c | 4 ++++
|
|
include/elf/common.h | 2 ++
|
|
2 files changed, 6 insertions(+)
|
|
|
|
diff --git a/gdb/auxv.c b/gdb/auxv.c
|
|
index 812b2807554..3ce5ccd3342 100644
|
|
--- a/gdb/auxv.c
|
|
+++ b/gdb/auxv.c
|
|
@@ -493,6 +493,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_HEX);
|
|
+ TAG (AT_RSEQ_ALIGN, _("rseq allocation alignment"),
|
|
+ AUXV_FORMAT_HEX);
|
|
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);
|
|
diff --git a/include/elf/common.h b/include/elf/common.h
|
|
index 16587f6fb06..a37b1f9a264 100644
|
|
--- a/include/elf/common.h
|
|
+++ b/include/elf/common.h
|
|
@@ -1353,6 +1353,8 @@
|
|
may differ from AT_PLATFORM. */
|
|
#define AT_RANDOM 25 /* Address of 16 random bytes. */
|
|
#define AT_HWCAP2 26 /* Extension of AT_HWCAP. */
|
|
+#define AT_RSEQ_FEATURE_SIZE 27 /* rseq supported feature size */
|
|
+#define AT_RSEQ_ALIGN 28 /* rseq allocation alignment */
|
|
#define AT_EXECFN 31 /* Filename of executable. */
|
|
/* Pointer to the global system page used for system calls and other
|
|
nice things. */
|
|
--
|
|
2.35.3
|
|
|