aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.base/relativedebug.exp11
2 files changed, 17 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index a9a0757..1e48f98 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-04-30 Yao Qi <yao.qi@linaro.org>
+
+ * gdb.base/relativedebug.exp: Invoke gdb command
+ "info sharedlibrary", and if libc.so doesn't have debug info,
+ skip the test.
+
2015-04-29 Doug Evans <dje@google.com>
* gdb.python/py-xmethods.exp: Add ptype tests.
diff --git a/gdb/testsuite/gdb.base/relativedebug.exp b/gdb/testsuite/gdb.base/relativedebug.exp
index 621226b..b42dbf9 100644
--- a/gdb/testsuite/gdb.base/relativedebug.exp
+++ b/gdb/testsuite/gdb.base/relativedebug.exp
@@ -31,6 +31,17 @@ clean_restart ${binfile}
runto_main
+set test "info sharedlibrary"
+gdb_test_multiple $test $test {
+ -re ".*\(\\*\)\[^\r\n\]*/libc\.so.*$gdb_prompt $" {
+ # Skip the test below if libc doesn't have debug info.
+ unsupported "libc doesn't have debug info"
+ return -1
+ }
+ -re ".*$gdb_prompt $" {
+ }
+}
+
# pause () -> SIGALRM -> handler () -> abort ()
gdb_test "continue" "Program received signal SIGABRT.*"