File gdb-glibc-vdso-workaround.patch of Package gdb.3129

http://sourceware.org/ml/gdb-patches/2011-08/msg00331.html
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".

Index: gdb-7.11.1/gdb/solib.c
===================================================================
--- gdb-7.11.1.orig/gdb/solib.c	2016-02-10 04:19:39.000000000 +0100
+++ gdb-7.11.1/gdb/solib.c	2016-08-08 17:34:35.000000000 +0200
@@ -891,8 +891,13 @@ update_solib_list (int from_tty, struct
 
 	  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-vdso32.so.1") != 0
+		  && strcmp (i->so_original_name, "linux-vdso64.so.1") != 0
+		  && strcmp (i->so_original_name, "linux-gate.so.1") != 0)
 		{
 		  not_found++;
 		  if (not_found_filename == NULL)
openSUSE Build Service is sponsored by