summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2006-11-10 16:58:53 +0000
committerVladimir Prus <vladimir@codesourcery.com>2006-11-10 16:58:53 +0000
commitd8295fe954b3f129fe3439aa17bb2c2be45d264c (patch)
treee6b39931532f4a68e365d612f49c0a50ca09b3a1 /gdb/testsuite/gdb.trace
parent73ca250004d8918d3fdaef1ce59291e05770e898 (diff)
downloadbinutils-gdb-d8295fe954b3f129fe3439aa17bb2c2be45d264c.tar.gz
2006-11-10 Vladimir Prus <vladimir@codesourcery.com>
* gdb.base/completion.exp: Fix completion tests for 'info' and 'info '. * gdb.base/help.exp (help_test_raw, test_class_help) (test_prefix_command_help): Move... * lib/gdb.exp: Here. * gdb.base/main.exp: Adjust. * gdb.cp/maint.exp: Adjust. * gdb.trace/tracecmd.exp: Use test_help_class.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r--gdb/testsuite/gdb.trace/tracecmd.exp106
1 files changed, 3 insertions, 103 deletions
diff --git a/gdb/testsuite/gdb.trace/tracecmd.exp b/gdb/testsuite/gdb.trace/tracecmd.exp
index 1609e67ac59..3bf12800a50 100644
--- a/gdb/testsuite/gdb.trace/tracecmd.exp
+++ b/gdb/testsuite/gdb.trace/tracecmd.exp
@@ -66,109 +66,9 @@ set testline2 [expr $baseline + 3]
#
set helpcnt 0;
-send_gdb "help tracepoints\n"
-gdb_expect {
- -re "Tracing of program execution without stopping the program." {
- incr helpcnt;
- exp_continue
- }
- -re "actions -- Specify the actions to be taken at a tracepoint" {
- incr helpcnt;
- exp_continue
- }
- -re "collect -- Specify one or more data items to be collected" {
- incr helpcnt;
- exp_continue
- }
- -re "delete tracepoints -- Delete specified tracepoints" {
- incr helpcnt;
- exp_continue
- }
- -re "end -- Ends a list of.*actions" {
- incr helpcnt;
- exp_continue
- }
- -re "info tracepoints -- Status of tracepoints" {
- incr helpcnt;
- exp_continue
- }
- -re "passcount -- Set the passcount for a tracepoint" {
- incr helpcnt;
- exp_continue
- }
- -re "save-tracepoints -- Save current tracepoint definitions" {
- incr helpcnt;
- exp_continue
- }
- -re "tdump -- Print everything collected at the current tracepoint" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind -- Select a trace frame" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind end -- Synonym for 'none'" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind line -- Select a trace frame by line number" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind none -- De-select any trace frame and resume 'live' debugging" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind outside -- Select a trace frame whose PC is outside" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind pc -- Select a trace frame by PC" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind range -- Select a trace frame whose PC is in the given" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind start -- Select the first trace frame in the trace buffer" {
- incr helpcnt;
- exp_continue
- }
- -re "tfind tracepoint -- Select a trace frame by tracepoint number" {
- incr helpcnt;
- exp_continue
- }
- -re "trace -- Set a tracepoint at a specified line or function or addr" {
- incr helpcnt;
- exp_continue
- }
- -re "tstart -- Start trace data collection" {
- incr helpcnt;
- exp_continue
- }
- -re "tstatus -- Display the status of the current trace data collection" {
- incr helpcnt;
- exp_continue
- }
- -re "tstop -- Stop trace data collection" {
- incr helpcnt;
- exp_continue
- }
- -re "while-stepping -- Specify single-stepping behavior at a tracepoint" {
- incr helpcnt;
- exp_continue
- }
- -re ".*$gdb_prompt $" {
- if { $helpcnt == 21 } {
- pass "1.0: help tracepoints"
- } else {
- warning "$helpcnt";
- fail "1.0: help tracepoints"
- }
- }
-}
+test_class_help "tracepoints" {
+ "Tracing of program execution without stopping the program\.[\r\n\]+"
+} "1.0: help tracepoints"
#
# test trace command: