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

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