aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-05-24 12:27:39 +0000
committerYao Qi <yao@codesourcery.com>2013-05-24 12:27:39 +0000
commitc0ea94eb34ef5e4c0a4c5df40976d368ddf54fb4 (patch)
tree1baeef58e4975b5a2ab433b5f203038dc93f214f /gdb/testsuite
parent6740dc9c3e1fbc0f2ae2cb54feee654023db157d (diff)
downloadgdb-c0ea94eb34ef5e4c0a4c5df40976d368ddf54fb4.zip
gdb-c0ea94eb34ef5e4c0a4c5df40976d368ddf54fb4.tar.gz
gdb-c0ea94eb34ef5e4c0a4c5df40976d368ddf54fb4.tar.bz2
gdb/
* tracepoint.c (TFILE_PID): Remove. (tfile_open): Don't add thread and inferior. (tfile_close): Don't set 'inferior_ptid'. Don't call exit_inferior_silent. (tfile_thread_alive): Remove. (init_tfile_ops): Don't set field 'to_thread_alive' of tfile_ops. gdb/testsuite/ * gdb.trace/tfile.exp: Test inferior and thread.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.trace/tfile.exp3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index eb7c7a0..cf92f6c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,4 +1,8 @@
2013-05-24 Yao Qi <yao@codesourcery.com>
+
+ * gdb.trace/tfile.exp: Test inferior and thread.
+
+2013-05-24 Yao Qi <yao@codesourcery.com>
Pedro Alves <palves@redhat.com>
* gdb.base/range-stepping.exp: Skip the rest of tests if the
diff --git a/gdb/testsuite/gdb.trace/tfile.exp b/gdb/testsuite/gdb.trace/tfile.exp
index 087d207..d7381eb 100644
--- a/gdb/testsuite/gdb.trace/tfile.exp
+++ b/gdb/testsuite/gdb.trace/tfile.exp
@@ -119,6 +119,9 @@ Trace buffer has 256 bytes of 4096 bytes free \\(93% full\\).*
Not looking at any trace frame.*" \
"tstatus on error trace file"
+gdb_test "info threads" "No threads\..*"
+gdb_test "info inferiors" "\\* 1 <null>\[ \t\]+${binfile}.*"
+
# Make sure we can reopen without error.
gdb_test \
"interpreter-exec mi \"-target-select tfile tfile-basic.tf\"" \