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

132741
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
132741
From: Fedora GDB patches <invalid@email.com>
132741
Date: Fri, 27 Oct 2017 21:07:50 +0200
132741
Subject: gdb-core-open-vdso-warning.patch
132741
132741
;; Fix GNU/Linux core open: Can't read pathname for load map: Input/output error.
132741
;; Fix regression of undisplayed missing shared libraries caused by a fix for.
132741
;;=fedoratest: It should be in glibc: libc-alpha: <20091004161706.GA27450@.*>
132741
132741
http://sourceware.org/ml/gdb-patches/2009-10/msg00142.html
132741
Subject: [patch] Fix GNU/Linux core open: Can't read pathname for load map:  Input/output error.
132741
132741
[ New patch variant.  ]
132741
132741
commit 7d760051ffb8a23cdc51342d4e6243fbc462f73f
132741
Author: Ulrich Weigand <uweigand@de.ibm.com>
132741
Date:   Wed Sep 25 11:52:50 2013 +0000
132741
132741
diff --git a/gdb/testsuite/gdb.base/solib-symbol.exp b/gdb/testsuite/gdb.base/solib-symbol.exp
132741
--- a/gdb/testsuite/gdb.base/solib-symbol.exp
132741
+++ b/gdb/testsuite/gdb.base/solib-symbol.exp
132741
@@ -29,6 +29,7 @@ set testfile "solib-symbol-main"
132741
 set srcfile ${srcdir}/${subdir}/${testfile}.c
132741
 set binfile [standard_output_file ${testfile}]
132741
 set bin_flags [list debug shlib=${binfile_lib}]
132741
+set executable ${testfile}
132741
 
132741
 if [get_compiler_info] {
132741
     return -1
132741
@@ -71,8 +72,26 @@ gdb_test "br foo2" \
132741
 	 "Breakpoint.*: foo2. .2 locations..*" \
132741
 	 "foo2 in mdlib"
132741
 
132741
-gdb_exit
132741
+# Test GDB warns for shared libraris which have not been found.
132741
 
132741
-return 0
132741
+gdb_test "info sharedlibrary" "/${libname}.*"
132741
 
132741
+clean_restart ${executable}
132741
+gdb_breakpoint "main"
132741
+gdb_run_cmd
132741
+set test "no warning for missing libraries"
132741
+gdb_test_multiple "" $test {
132741
+    -re "warning: Could not load shared library symbols for \[0-9\]+ libraries,.*\r\n$gdb_prompt $" {
132741
+	fail $test
132741
+    }
132741
+    -re "Breakpoint \[0-9\]+, main .*\r\n$gdb_prompt $" {
132741
+	pass $test
132741
+    }
132741
+}
132741
 
132741
+clean_restart ${executable}
132741
+gdb_test_no_output "set solib-absolute-prefix /doESnotEXIST"
132741
+gdb_breakpoint "main"
132741
+gdb_run_cmd
132741
+gdb_test "" "warning: Could not load shared library symbols for \[0-9\]+ libraries,.*\r\nBreakpoint \[0-9\]+, main .*" \
132741
+	 "warning for missing libraries"