summaryrefslogtreecommitdiff
path: root/debian/patches/gdb-glibc-vdso-workaround.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/gdb-glibc-vdso-workaround.patch')
-rw-r--r--debian/patches/gdb-glibc-vdso-workaround.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/gdb-glibc-vdso-workaround.patch b/debian/patches/gdb-glibc-vdso-workaround.patch
new file mode 100644
index 0000000..e4f06df
--- /dev/null
+++ b/debian/patches/gdb-glibc-vdso-workaround.patch
@@ -0,0 +1,35 @@
+From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: [RFC] Work around PR libc/13097 "linux-vdso.so.1" #2
+
+Hi,
+
+missed the x86_64-m32 case:
+
+gdb/
+2011-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Work around PR libc/13097.
+ * solib.c (update_solib_list): Ignore "linux-vdso.so.1".
+---
+ gdb/solib.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+Index: gdb/gdb/solib.c
+===================================================================
+--- gdb.orig/gdb/solib.c 2019-02-22 11:22:10.271631170 +0100
++++ gdb/gdb/solib.c 2019-02-22 11:22:10.267631123 +0100
+@@ -870,8 +870,11 @@
+
+ TRY
+ {
+- /* Fill in the rest of the `struct so_list' node. */
+- if (!solib_map_sections (i))
++ /* Fill in the rest of the `struct so_list' node.
++ Work around PR libc/13097. */
++ if (!solib_map_sections (i)
++ && strcmp (i->so_original_name, "linux-vdso.so.1") != 0
++ && strcmp (i->so_original_name, "linux-gate.so.1") != 0)
+ {
+ not_found++;
+ if (not_found_filename == NULL)