aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-06-08 22:58:03 +0000
committerMichael Snyder <msnyder@vmware.com>2010-06-08 22:58:03 +0000
commitde7ff7894a60ddc92840b84b370f0be82fc99116 (patch)
treec056fee6c33d01846b340460ac81400d8224a9f5 /gdb/testsuite/gdb.trace
parent11dd4e37b44350ce7d8e3957256bfd24fdc64328 (diff)
downloadfsf-binutils-gdb-de7ff7894a60ddc92840b84b370f0be82fc99116.zip
fsf-binutils-gdb-de7ff7894a60ddc92840b84b370f0be82fc99116.tar.gz
fsf-binutils-gdb-de7ff7894a60ddc92840b84b370f0be82fc99116.tar.bz2
2010-06-08 Michael Snyder <msnyder@vmware.com>
* gdb.ada/exec_changed.exp: Use ".*" instead of "" as wildcard regexp. * gdb.base/async.exp: Use ".*" instead of "" as wildcard regexp. * gdb.base/call-ar-st.exp: Ditto. * gdb.base/checkpoint.exp: Ditto. * gdb.base/default.exp: Ditto. * gdb.base/dump.exp: Ditto. * gdb.base/ending-run.exp: Ditto. * gdb.base/fileio.exp: Ditto. * gdb.base/miscexprs.exp: Ditto. * gdb.base/pointers.exp: Ditto. * gdb.base/readline.exp: Ditto. * gdb.base/reread.exp: Ditto. * gdb.base/restore.exp: Ditto. * gdb.base/shlib-call.exp: Ditto. * gdb.base/valgrind-db-attach.exp: Ditto. * gdb.base/volatile.exp: Ditto. * gdb.base/watchpoints.exp: Ditto. * gdb.cp/classes.exp: Use ".*" instead of "" as wildcard regexp. * gdb.python/py-frame.exp: Use ".*" instead of "" as wildcard regexp. * gdb.python/py-value.exp: Ditto. * gdb.trace/backtrace.exp: Use ".*" instead of "" as wildcard regexp. * gdb.trace/circ.exp: Ditto. * gdb.trace/collection.exp: Ditto. * gdb.trace/packetlen.exp: Ditto. * gdb.trace/passc-dyn.exp: Ditto. * gdb.trace/report.exp: Ditto. * gdb.trace/tfile.exp: Ditto. * gdb.trace/tfind.exp: Ditto. * gdb.trace/while-dyn.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r--gdb/testsuite/gdb.trace/backtrace.exp12
-rw-r--r--gdb/testsuite/gdb.trace/circ.exp10
-rw-r--r--gdb/testsuite/gdb.trace/collection.exp6
-rw-r--r--gdb/testsuite/gdb.trace/packetlen.exp8
-rw-r--r--gdb/testsuite/gdb.trace/passc-dyn.exp24
-rw-r--r--gdb/testsuite/gdb.trace/report.exp10
-rw-r--r--gdb/testsuite/gdb.trace/tfile.exp6
-rw-r--r--gdb/testsuite/gdb.trace/tfind.exp6
-rw-r--r--gdb/testsuite/gdb.trace/while-dyn.exp16
9 files changed, 49 insertions, 49 deletions
diff --git a/gdb/testsuite/gdb.trace/backtrace.exp b/gdb/testsuite/gdb.trace/backtrace.exp
index ae4e628..4fa2cf0 100644
--- a/gdb/testsuite/gdb.trace/backtrace.exp
+++ b/gdb/testsuite/gdb.trace/backtrace.exp
@@ -34,8 +34,8 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
return -1
}
gdb_load $binfile
-gdb_test "tstop" "" ""
-gdb_test "tfind none" "" ""
+gdb_test "tstop" ".*" ""
+gdb_test "tfind none" ".*" ""
runto_main
gdb_reinitialize_dir $srcdir/$subdir
@@ -164,14 +164,14 @@ gdb_trace_setactions "8.6: setup TP to collect stack mem cast expr" \
"$tdp6" \
"collect $fpreg, \(\*\(void \*\*\) \($spreg\)\) @ 64" "^$"
-gdb_test "tstart" "" ""
+gdb_test "tstart" ".*" ""
-gdb_test "break end" "" ""
+gdb_test "break end" ".*" ""
gdb_test "continue" \
"Continuing.*Breakpoint $decimal, end.*" \
"run trace experiment"
-gdb_test "tstop" "" ""
+gdb_test "tstop" ".*" ""
proc gdb_backtrace_tdp_1 { msg } {
global gdb_prompt
@@ -337,4 +337,4 @@ gdb_test "printf \"x \%d x\\n\", depth == 3" \
"1.13: trace in recursion: depth not equal to 3"
# Finished!
-gdb_test "tfind none" "" ""
+gdb_test "tfind none" ".*" ""
diff --git a/gdb/testsuite/gdb.trace/circ.exp b/gdb/testsuite/gdb.trace/circ.exp
index 2cc360f..87e414c 100644
--- a/gdb/testsuite/gdb.trace/circ.exp
+++ b/gdb/testsuite/gdb.trace/circ.exp
@@ -117,10 +117,10 @@ proc gdb_trace_circular_tests { } {
if [trace_buffer_normal] then { return 1; }
- gdb_test "break begin" "" ""
- gdb_test "break end" "" ""
- gdb_test "tstop" "" ""
- gdb_test "tfind none" "" ""
+ gdb_test "break begin" ".*" ""
+ gdb_test "break end" ".*" ""
+ gdb_test "tstop" ".*" ""
+ gdb_test "tfind none" ".*" ""
if [setup_tracepoints] then { return 1; }
@@ -213,4 +213,4 @@ if { ![gdb_trace_circular_tests] } then {
}
# Finished!
-gdb_test "tfind none" "" ""
+gdb_test "tfind none" ".*" ""
diff --git a/gdb/testsuite/gdb.trace/collection.exp b/gdb/testsuite/gdb.trace/collection.exp
index ffa7eb7..6fd24a3 100644
--- a/gdb/testsuite/gdb.trace/collection.exp
+++ b/gdb/testsuite/gdb.trace/collection.exp
@@ -86,8 +86,8 @@ proc prepare_for_trace_test {} {
runto_main
- gdb_test "break begin" "" ""
- gdb_test "break end" "" ""
+ gdb_test "break begin" ".*" ""
+ gdb_test "break end" ".*" ""
}
proc run_trace_experiment { msg test_func } {
@@ -635,4 +635,4 @@ if { ![gdb_target_supports_trace] } then {
gdb_trace_collection_test
# Finished!
-gdb_test "tfind none" "" ""
+gdb_test "tfind none" ".*" ""
diff --git a/gdb/testsuite/gdb.trace/packetlen.exp b/gdb/testsuite/gdb.trace/packetlen.exp
index 3a7ab3a..be89ee6 100644
--- a/gdb/testsuite/gdb.trace/packetlen.exp
+++ b/gdb/testsuite/gdb.trace/packetlen.exp
@@ -34,8 +34,8 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
return -1
}
gdb_load $binfile
-gdb_test "tstop" "" ""
-gdb_test "tfind none" "" ""
+gdb_test "tstop" ".*" ""
+gdb_test "tfind none" ".*" ""
runto_main
gdb_reinitialize_dir $srcdir/$subdir
@@ -48,7 +48,7 @@ gdb_reinitialize_dir $srcdir/$subdir
#
gdb_delete_tracepoints
-gdb_test "trace gdb_c_test" "" ""
+gdb_test "trace gdb_c_test" ".*" ""
gdb_trace_setactions "setup collect actions" \
"" \
"collect parm\[0\], parm\[1\], parm\[2\], parm\[3\]" "^$" \
@@ -61,7 +61,7 @@ gdb_trace_setactions "setup collect actions" \
"end" ""
gdb_test_no_output "tstart" "survive the long packet send"
-gdb_test "break end" "" ""
+gdb_test "break end" ".*" ""
gdb_test "continue" \
"Continuing.*Breakpoint $decimal, end.*" \
"run trace experiment"
diff --git a/gdb/testsuite/gdb.trace/passc-dyn.exp b/gdb/testsuite/gdb.trace/passc-dyn.exp
index ec7d435..3d5bc0a 100644
--- a/gdb/testsuite/gdb.trace/passc-dyn.exp
+++ b/gdb/testsuite/gdb.trace/passc-dyn.exp
@@ -34,8 +34,8 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
return -1
}
gdb_load $binfile
-gdb_test "tstop" "" ""
-gdb_test "tfind none" "" ""
+gdb_test "tstop" ".*" ""
+gdb_test "tfind none" ".*" ""
runto_main
gdb_reinitialize_dir $srcdir/$subdir
@@ -93,45 +93,45 @@ gdb_test "passcount 2 $tdp3" "Setting tracepoint $tdp3's passcount to 2" \
gdb_test "passcount 3 $tdp4" "Setting tracepoint $tdp4's passcount to 3" \
"4.5: set passcount for tracepoint $tdp4"
-gdb_test "tstart" "" ""
+gdb_test "tstart" ".*" ""
-gdb_test "break end" "" ""
+gdb_test "break end" ".*" ""
gdb_test "continue" \
"Continuing.*Breakpoint $decimal, end.*" \
"run trace experiment"
-gdb_test "tstop" "" ""
+gdb_test "tstop" ".*" ""
-gdb_test "tfind none" "" ""
+gdb_test "tfind none" ".*" ""
if [gdb_test "printf \"x \%d x\\n\", \$trace_frame" "x -1 x" ""] {
untested passc-dyn.exp
return -1
}
-gdb_test "tfind tracepoint $tdp2" "" ""
+gdb_test "tfind tracepoint $tdp2" ".*" ""
if [gdb_test "printf \"x \%d x\\n\", \$trace_frame" "x 0 x" ""] {
untested passc-dyn.exp
return -1
}
-gdb_test "tfind tracepoint $tdp3" "" ""
+gdb_test "tfind tracepoint $tdp3" ".*" ""
if [gdb_test "printf \"x \%d x\\n\", \$trace_frame" "x 1 x" ""] {
untested passc-dyn.exp
return -1
}
-gdb_test "tfind tracepoint $tdp4" "" ""
+gdb_test "tfind tracepoint $tdp4" ".*" ""
if [gdb_test "printf \"x \%d x\\n\", \$trace_frame" "x 2 x" ""] {
untested passc-dyn.exp
return -1
}
-gdb_test "tfind tracepoint $tdp2" "" ""
+gdb_test "tfind tracepoint $tdp2" ".*" ""
if [gdb_test "printf \"x \%d x\\n\", \$trace_frame" "x 3 x" ""] {
untested passc-dyn.exp
return -1
}
-gdb_test "tfind tracepoint $tdp3" "" ""
+gdb_test "tfind tracepoint $tdp3" ".*" ""
if [gdb_test "printf \"x \%d x\\n\", \$trace_frame" "x 4 x" ""] {
untested passc-dyn.exp
return -1
@@ -144,5 +144,5 @@ if [gdb_test "printf \"x \%d x\\n\", \$trace_frame" "x 4 x" ""] {
gdb_test "tfind" "failed to find.*" "4.5: dynamic passcount test"
# Finished!
-gdb_test "tfind none" "" ""
+gdb_test "tfind none" ".*" ""
diff --git a/gdb/testsuite/gdb.trace/report.exp b/gdb/testsuite/gdb.trace/report.exp
index b9cec99..591ddf1 100644
--- a/gdb/testsuite/gdb.trace/report.exp
+++ b/gdb/testsuite/gdb.trace/report.exp
@@ -34,8 +34,8 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
return -1
}
gdb_load $binfile
-gdb_test "tstop" "" ""
-gdb_test "tfind none" "" ""
+gdb_test "tstop" ".*" ""
+gdb_test "tfind none" ".*" ""
runto_main
gdb_reinitialize_dir $srcdir/$subdir
@@ -180,14 +180,14 @@ gdb_trace_setactions "9.x: setup TP to collect expressions" \
"$tdp6" \
"collect gdb_char_test, gdb_short_test, gdb_long_test" "^$"
-gdb_test "tstart" "" ""
+gdb_test "tstart" ".*" ""
-gdb_test "break end" "" ""
+gdb_test "break end" ".*" ""
gdb_test "continue" \
"Continuing.*Breakpoint $decimal, end.*" \
"run trace experiment"
-gdb_test "tstop" "" ""
+gdb_test "tstop" ".*" ""
#
# 9.1 test the tdump command
diff --git a/gdb/testsuite/gdb.trace/tfile.exp b/gdb/testsuite/gdb.trace/tfile.exp
index 59bed78..0cbeb68 100644
--- a/gdb/testsuite/gdb.trace/tfile.exp
+++ b/gdb/testsuite/gdb.trace/tfile.exp
@@ -52,13 +52,13 @@ gdb_load $binfile
runto_main
-gdb_test "break done_making_trace_files" "" ""
+gdb_test "break done_making_trace_files" ".*" ""
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
# tsave command would be tested here...
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
# Program has presumably exited, now target a trace file it created.
diff --git a/gdb/testsuite/gdb.trace/tfind.exp b/gdb/testsuite/gdb.trace/tfind.exp
index e448850..a89bce6 100644
--- a/gdb/testsuite/gdb.trace/tfind.exp
+++ b/gdb/testsuite/gdb.trace/tfind.exp
@@ -36,8 +36,8 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" \
return -1
}
gdb_load $binfile
-gdb_test "tstop" "" ""
-gdb_test "tfind none" "" ""
+gdb_test "tstop" ".*" ""
+gdb_test "tfind none" ".*" ""
runto_main
gdb_reinitialize_dir $srcdir/$subdir
@@ -111,7 +111,7 @@ gdb_test "tstatus" "\[Tt\]race is running.*" "test tstatus on"
# 6.2 test help tstart
gdb_test "help tstart" "Start trace data collection." "6.2: help tstart"
-gdb_test "break end" "" ""
+gdb_test "break end" ".*" ""
gdb_test "continue" \
"Continuing.*Breakpoint $decimal, end.*" \
"run trace experiment"
diff --git a/gdb/testsuite/gdb.trace/while-dyn.exp b/gdb/testsuite/gdb.trace/while-dyn.exp
index 2831d25..8c8864f 100644
--- a/gdb/testsuite/gdb.trace/while-dyn.exp
+++ b/gdb/testsuite/gdb.trace/while-dyn.exp
@@ -35,8 +35,8 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
return -1
}
gdb_load $binfile
-gdb_test "tstop" "" ""
-gdb_test "tfind none" "" ""
+gdb_test "tstop" ".*" ""
+gdb_test "tfind none" ".*" ""
runto_main
gdb_reinitialize_dir $srcdir/$subdir
@@ -67,8 +67,8 @@ proc test_while_stepping { while_stepping } {
clean_restart $executable
- gdb_test "tstop" "" ""
- gdb_test "tfind none" "" ""
+ gdb_test "tstop" ".*" ""
+ gdb_test "tfind none" ".*" ""
runto_main
## verify number of trace frames collected matches stepcount
@@ -86,14 +86,14 @@ proc test_while_stepping { while_stepping } {
"end" "^$" \
"end" ""
- gdb_test "tstart" "" ""
+ gdb_test "tstart" ".*" ""
- gdb_test "break end" "" ""
+ gdb_test "break end" ".*" ""
gdb_test "continue" \
"Continuing.*Breakpoint $decimal, end.*" \
"$while_stepping: run trace experiment"
- gdb_test "tstop" "" ""
+ gdb_test "tstop" ".*" ""
gdb_tfind_test "$while_stepping: frame 5 should be the last one collected" "5" "5"
@@ -107,7 +107,7 @@ proc test_while_stepping { while_stepping } {
}
}
- gdb_test "tfind none" "" ""
+ gdb_test "tfind none" ".*" ""
}
# Test all while-stepping aliases.