aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2013-09-25 11:52:50 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2013-09-25 11:52:50 +0000
commit7d760051ffb8a23cdc51342d4e6243fbc462f73f (patch)
treefb9306fe2c91b5731821ac3bfb9689660849fea7 /gdb/testsuite/gdb.base
parent020f703635b9a8dcc29dce41a682b99bde1e8c74 (diff)
downloadgdb-7d760051ffb8a23cdc51342d4e6243fbc462f73f.zip
gdb-7d760051ffb8a23cdc51342d4e6243fbc462f73f.tar.gz
gdb-7d760051ffb8a23cdc51342d4e6243fbc462f73f.tar.bz2
ChangeLog:
2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> PR shlibs/8882 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading link map entries. testsuite/ChangeLog: 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> PR shlibs/8882 * gdb.base/corefile.exp: Add a check to assure warning-free core-file load.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/corefile.exp16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/corefile.exp b/gdb/testsuite/gdb.base/corefile.exp
index 24a33a3..04ae969 100644
--- a/gdb/testsuite/gdb.base/corefile.exp
+++ b/gdb/testsuite/gdb.base/corefile.exp
@@ -255,3 +255,19 @@ if ![is_remote target] {
gdb_exit
}
+
+# Test warning-free core file load. E.g., a Linux vDSO used to
+# trigger this warning:
+# warning: Can't read pathname for load map: Input/output error.
+
+clean_restart ${testfile}
+
+set test "core-file warning-free"
+gdb_test_multiple "core-file $corefile" $test {
+ -re "warning: .*\r\n.*\r\n$gdb_prompt $" {
+ fail $test
+ }
+ -re "\r\n$gdb_prompt $" {
+ pass $test
+ }
+}