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