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