Blame SOURCES/gdb-core-open-vdso-warning.patch

7a6771
http://sourceware.org/ml/gdb-patches/2009-10/msg00142.html
7a6771
Subject: [patch] Fix GNU/Linux core open: Can't read pathname for load map:  Input/output error.
7a6771
7a6771
[ New patch variant.  ]
7a6771
7a6771
commit 7d760051ffb8a23cdc51342d4e6243fbc462f73f
7a6771
Author: Ulrich Weigand <uweigand@de.ibm.com>
7a6771
Date:   Wed Sep 25 11:52:50 2013 +0000
7a6771
7a6771
Index: gdb-7.6.50.20130731-cvs/gdb/testsuite/gdb.base/solib-symbol.exp
7a6771
===================================================================
7a6771
--- gdb-7.6.50.20130731-cvs.orig/gdb/testsuite/gdb.base/solib-symbol.exp	2013-08-02 16:27:28.833259471 +0200
7a6771
+++ gdb-7.6.50.20130731-cvs/gdb/testsuite/gdb.base/solib-symbol.exp	2013-08-02 16:28:22.549330973 +0200
7a6771
@@ -29,6 +29,7 @@ set testfile "solib-symbol-main"
7a6771
 set srcfile ${srcdir}/${subdir}/${testfile}.c
7a6771
 set binfile [standard_output_file ${testfile}]
7a6771
 set bin_flags [list debug shlib=${binfile_lib}]
7a6771
+set executable ${testfile}
7a6771
 
7a6771
 if [get_compiler_info] {
7a6771
     return -1
7a6771
@@ -72,8 +73,26 @@ gdb_test "br foo2" \
7a6771
 	 "Breakpoint.*: foo2. .2 locations..*" \
7a6771
 	 "foo2 in mdlib"
7a6771
 
7a6771
-gdb_exit
7a6771
+# Test GDB warns for shared libraris which have not been found.
7a6771
 
7a6771
-return 0
7a6771
+gdb_test "info sharedlibrary" "/${libname}.*"
7a6771
 
7a6771
+clean_restart ${executable}
7a6771
+gdb_breakpoint "main"
7a6771
+gdb_run_cmd
7a6771
+set test "no warning for missing libraries"
7a6771
+gdb_test_multiple "" $test {
7a6771
+    -re "warning: Could not load shared library symbols for \[0-9\]+ libraries,.*\r\n$gdb_prompt $" {
7a6771
+	fail $test
7a6771
+    }
7a6771
+    -re "Breakpoint \[0-9\]+, main .*\r\n$gdb_prompt $" {
7a6771
+	pass $test
7a6771
+    }
7a6771
+}
7a6771
 
7a6771
+clean_restart ${executable}
7a6771
+gdb_test_no_output "set solib-absolute-prefix /doESnotEXIST"
7a6771
+gdb_breakpoint "main"
7a6771
+gdb_run_cmd
7a6771
+gdb_test "" "warning: Could not load shared library symbols for \[0-9\]+ libraries,.*\r\nBreakpoint \[0-9\]+, main .*" \
7a6771
+	 "warning for missing libraries"