Blame SOURCES/gdb-glibc-vdso-workaround.patch

01917d
http://sourceware.org/ml/gdb-patches/2011-08/msg00331.html
01917d
Subject: [RFC] Work around PR libc/13097 "linux-vdso.so.1" #2
01917d
01917d
Hi,
01917d
01917d
missed the x86_64-m32 case:
01917d
01917d
gdb/
01917d
2011-08-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
01917d
01917d
	Work around PR libc/13097.
01917d
	* solib.c (update_solib_list): Ignore "linux-vdso.so.1".
01917d
01917d
--- a/gdb/solib.c
01917d
+++ b/gdb/solib.c
01917d
@@ -783,8 +783,11 @@ update_solib_list (int from_tty, struct target_ops *target)
01917d
 
01917d
 	  TRY_CATCH (e, RETURN_MASK_ERROR)
01917d
 	    {
01917d
-	      /* Fill in the rest of the `struct so_list' node.  */
01917d
-	      if (!solib_map_sections (i))
01917d
+	      /* Fill in the rest of the `struct so_list' node.
01917d
+		 Work around PR libc/13097.  */
01917d
+	      if (!solib_map_sections (i)
01917d
+		  && strcmp (i->so_original_name, "linux-vdso.so.1") != 0
01917d
+		  && strcmp (i->so_original_name, "linux-gate.so.1") != 0)
01917d
 		{
01917d
 		  not_found++;
01917d
 		  if (not_found_filename == NULL)
01917d