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