2017-12-10 22:00:49 +00:00
|
|
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
2017-12-08 04:31:26 +00:00
|
|
|
Subject: Work around PR libc/13097 "linux-vdso.so.1" #2
|
2011-08-16 14:21:06 +00:00
|
|
|
|
2017-12-04 19:24:00 +00:00
|
|
|
FileName: gdb-glibc-vdso-workaround.patch
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
;; Work around PR libc/13097 "linux-vdso.so.1" warning message.
|
|
|
|
;;=push+jan
|
2017-12-04 19:24:00 +00:00
|
|
|
|
|
|
|
http://sourceware.org/ml/gdb-patches/2011-08/msg00331.html
|
|
|
|
|
2011-08-16 14:21:06 +00:00
|
|
|
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".
|
2017-12-08 04:31:26 +00:00
|
|
|
---
|
|
|
|
gdb/solib.c | 7 +++++--
|
|
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/gdb/solib.c b/gdb/solib.c
|
|
|
|
index cb7a5c0b51..511671ea9d 100644
|
|
|
|
--- a/gdb/solib.c
|
|
|
|
+++ b/gdb/solib.c
|
|
|
|
@@ -884,8 +884,11 @@ update_solib_list (int from_tty)
|
2011-08-16 14:21:06 +00:00
|
|
|
|
2015-05-31 18:47:21 +00:00
|
|
|
TRY
|
2011-08-16 14:21:06 +00:00
|
|
|
{
|
|
|
|
- /* 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)
|
2017-12-08 04:31:26 +00:00
|
|
|
--
|
|
|
|
2.14.3
|
|
|
|
|