aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/async.exp6
-rw-r--r--gdb/testsuite/gdb.base/call-ar-st.exp14
-rw-r--r--gdb/testsuite/gdb.base/checkpoint.exp34
-rw-r--r--gdb/testsuite/gdb.base/default.exp8
-rw-r--r--gdb/testsuite/gdb.base/dump.exp2
-rw-r--r--gdb/testsuite/gdb.base/ending-run.exp2
-rw-r--r--gdb/testsuite/gdb.base/fileio.exp2
-rw-r--r--gdb/testsuite/gdb.base/miscexprs.exp2
-rw-r--r--gdb/testsuite/gdb.base/pointers.exp2
-rw-r--r--gdb/testsuite/gdb.base/readline.exp2
-rw-r--r--gdb/testsuite/gdb.base/reread.exp18
-rw-r--r--gdb/testsuite/gdb.base/restore.exp2
-rw-r--r--gdb/testsuite/gdb.base/shlib-call.exp2
-rw-r--r--gdb/testsuite/gdb.base/valgrind-db-attach.exp2
-rw-r--r--gdb/testsuite/gdb.base/volatile.exp2
-rw-r--r--gdb/testsuite/gdb.base/watchpoints.exp4
16 files changed, 52 insertions, 52 deletions
diff --git a/gdb/testsuite/gdb.base/async.exp b/gdb/testsuite/gdb.base/async.exp
index 6b67723..e036368 100644
--- a/gdb/testsuite/gdb.base/async.exp
+++ b/gdb/testsuite/gdb.base/async.exp
@@ -67,12 +67,12 @@ if ![runto_main] then {
continue
}
-gdb_test "break baz" "" ""
+gdb_test "break baz" ".*" ""
#
# Make sure we get a 'completed' message when the target is done.
#
-gdb_test "set display-exec-done on" "" ""
+gdb_test "set display-exec-done on" ".*" ""
send_gdb "next&\n"
@@ -135,7 +135,7 @@ gdb_expect {
timeout { fail "(timeout) until &" }
}
-gdb_test "set display-exec-done off" "" ""
+gdb_test "set display-exec-done off" ".*" ""
unset_board_info "gdb_protocol"
set_board_info "gdb_protocol" "remote"
diff --git a/gdb/testsuite/gdb.base/call-ar-st.exp b/gdb/testsuite/gdb.base/call-ar-st.exp
index 09bb19f..d71454e 100644
--- a/gdb/testsuite/gdb.base/call-ar-st.exp
+++ b/gdb/testsuite/gdb.base/call-ar-st.exp
@@ -155,7 +155,7 @@ if ![gdb_skip_stdio_test "continue to 1216"] {
"\[ \t\r\n\]+1216.*print_double_array\\(double_array\\)"
}
} else {
- gdb_test "continue" "" ""
+ gdb_test "continue" ".*" ""
}
# I am disabling this test, because it takes too long. I verified by
@@ -192,7 +192,7 @@ if {![gdb_skip_float_test "continuing to breakpoint 1220"] && \
".*main \\(\\) at .*call-ar-st.c:1220\[ \t\r\n\]+.*print_all_arrays\\(integer_array, char_array, float_array, double_array\\)."
}
} else {
- gdb_test "continue" "" ""
+ gdb_test "continue" ".*" ""
}
#step
@@ -206,7 +206,7 @@ if ![gdb_skip_stdio_test "next over print_int_array in print_all_arrays"] {
"array_i :.*307.*print_char_array.*" \
"next over print_int_array in print-all_arrays"
} else {
- gdb_test "next" "" ""
+ gdb_test "next" ".*" ""
}
#call print_double_array(array_d)
@@ -240,7 +240,7 @@ if {![gdb_skip_float_test "continuing to 1236"] && \
"\[ \t\r\n\]+.*HELLO WORLD.*main \\(\\) at .*call-ar-st.c:1236.*printf\\(.BYE BYE FOR NOW.n.\\)."
}
} else {
- gdb_test "continue" "" ""
+ gdb_test "continue" ".*" ""
}
@@ -258,7 +258,7 @@ if ![gdb_skip_stdio_test "next to 1237"] {
"BYE BYE FOR NOW.*1237.*printf\\(.VERY GREEN GRASS.n.\\);.*" \
"next to 1237"
} else {
- gdb_test "next" "" ""
+ gdb_test "next" ".*" ""
}
#call print_array_rep(\*list1, \*list2, \*list3)
@@ -319,7 +319,7 @@ if ![gdb_skip_stdio_test "continuing to 1281"] {
"Continuing\\..*Sum of 4 arrays.*Contents of linked list1.*Contents of two_floats_t.*main \\(\\) at .*call-ar-st.c:1281.*c = 0.*" \
"continue to 1281"
} else {
- gdb_test "continue" "" ""
+ gdb_test "continue" ".*" ""
}
#call print_small_structs(*struct1, *struct2, *struct3, *struct4,
@@ -500,7 +500,7 @@ if ![gdb_skip_stdio_test "continuing to 1300"] {
gdb_test "continue" "Continuing\\..*Contents of two_floats_t:.*main \\(\\) at.*call-ar-st.c:1300.*1300.*init_bit_flags_combo\\(flags_combo, \\(unsigned\\)1, \\(unsigned\\)0, .y.,.*" \
"continue to 1300"
} else {
- gdb_test "continue" "" ""
+ gdb_test "continue" ".*" ""
}
#step
diff --git a/gdb/testsuite/gdb.base/checkpoint.exp b/gdb/testsuite/gdb.base/checkpoint.exp
index afb66a2..23a0a36 100644
--- a/gdb/testsuite/gdb.base/checkpoint.exp
+++ b/gdb/testsuite/gdb.base/checkpoint.exp
@@ -62,34 +62,34 @@ set break4_loc [gdb_get_line_number "breakpoint 4"]
gdb_breakpoint $break1_loc
gdb_test "continue" "breakpoint 1.*" "break1 start"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 two"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 three"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 four"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 five"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 six"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 seven"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 eight"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 nine"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "continue 10" "breakpoint 1.*" "break1 ten"
-gdb_test "checkpoint" "" ""
+gdb_test "checkpoint" ".*" ""
gdb_test "info checkpoints" \
" 10 .* 9 .* 8 .* 7 .* 6 .* 5 .* 4 .* 3 .* 2 .* 1 .*" \
@@ -169,43 +169,43 @@ gdb_test "shell diff -s pi.txt copy1.txt" \
gdb_breakpoint $break1_loc
gdb_test "restart 1" "Switching to .*c == EOF.*" "restart 1 two"
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
gdb_test "continue 100" "breakpoint 1.*" "breakpoint 1 1 one"
gdb_test "step" "if .c == EOF.*" "step in 1 two"
gdb_test "print lines" " = 102.*" "verify lines 1 two"
gdb_test "restart 2" "Switching to .*c == EOF.*" "restart 2 two"
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
gdb_test "continue 100" "breakpoint 1.*" "breakpoint 1 2 one"
gdb_test "step" "if .c == EOF.*" "step in 2 two"
gdb_test "print lines" " = 112.*" "verify lines 2 two"
gdb_test "restart 3" "Switching to .*c == EOF.*" "restart 3 two"
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
gdb_test "continue 500" "breakpoint 1.*" "breakpoint 1 3 one"
gdb_test "step" "if .c == EOF.*" "step in 3 two"
gdb_test "print lines" " = 522.*" "verify lines 3 two"
gdb_test "restart 4" "Switching to .*c == EOF.*" "restart 4 two"
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
gdb_test "continue 500" "breakpoint 1.*" "breakpoint 1 4 one"
gdb_test "step" "if .c == EOF.*" "step in 4 two"
gdb_test "print lines" " = 532.*" "verify lines 4 two"
gdb_test "restart 5" "Switching to .*c == EOF.*" "restart 5 two"
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
gdb_test "continue 1000" "breakpoint 1.*" "breakpoint 1 5 one"
gdb_test "step" "if .c == EOF.*" "step in 5 two"
gdb_test "print lines" " = 1042.*" "verify lines 5 two"
gdb_test "restart 6" "Switching to .*c == EOF.*" "restart 6 two"
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
gdb_test "continue 1000" "breakpoint 1.*" "breakpoint 1 6 one"
gdb_test "step" "if .c == EOF.*" "step in 6 two"
gdb_test "print lines" " = 1052.*" "verify lines 5 two"
gdb_test "restart 7" "Switching to .*c == EOF.*" "restart 7 two"
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
gdb_test "continue 1100" "breakpoint 1.*" "breakpoint 1 7 one"
gdb_test "step" "if .c == EOF.*" "step in 7 two"
gdb_test "print lines" " = 1162.*" "verify lines 7 two"
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index caba3b3..a9a0701 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -392,12 +392,12 @@ gdb_test "pwd" "Working directory .*" "pwd"
#test run "r" abbreviation
if [istarget "*-*-vxworks*"] then {
- gdb_test "set args" "" ""
+ gdb_test "set args" ".*" ""
gdb_test "r" "Starting program: .*
You must specify a function name to run, and arguments if any"\
"run \"r\" abbreviation"
- gdb_test "set args main" "" ""
+ gdb_test "set args main" ".*" ""
} else {
gdb_test_multiple "r" "run \"r\" abbreviation" {
@@ -418,11 +418,11 @@ You must specify a function name to run, and arguments if any"\
#test run
if [istarget "*-*-vxworks*"] then {
- gdb_test "set args" "" ""
+ gdb_test "set args" ".*" ""
gdb_test "run" "Starting program: .*
You must specify a function name to run, and arguments if any"
- gdb_test "set args main" "" ""
+ gdb_test "set args main" ".*" ""
} else {
gdb_test_multiple "run" "run" {
diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp
index 384db3f..eb048b8 100644
--- a/gdb/testsuite/gdb.base/dump.exp
+++ b/gdb/testsuite/gdb.base/dump.exp
@@ -488,7 +488,7 @@ gdb_test "print intarray\[2\] == 0" " = 1" "element 2 not changed - 4"
gdb_test "print intarray\[4\] == 0" " = 1" "element 4 not changed - 4"
if ![string compare $is64bitonly "no"] then {
- gdb_test "print zero_all ()" "" ""
+ gdb_test "print zero_all ()" ".*" ""
# restore with expressions
test_restore_saved_value \
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp
index bdc3f3f..779f4d3 100644
--- a/gdb/testsuite/gdb.base/ending-run.exp
+++ b/gdb/testsuite/gdb.base/ending-run.exp
@@ -105,7 +105,7 @@ if ![gdb_skip_stdio_test "Step to return"] {
gdb_test "next" ".*Goodbye!.*32.*" \
"Step to return"
} else {
- gdb_test "next" "" ""
+ gdb_test "next" ".*" ""
}
set old_timeout $timeout
diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp
index bd1876c..d6242d0 100644
--- a/gdb/testsuite/gdb.base/fileio.exp
+++ b/gdb/testsuite/gdb.base/fileio.exp
@@ -83,7 +83,7 @@ gdb_test continue \
"Continuing\\..*open 4:.*ENOENT$stop_msg" \
"Opening nonexistant file returns ENOENT"
-gdb_test "continue" "" ""
+gdb_test "continue" ".*" ""
catch "system \"chmod -f -w nowrt.fileio.test\""
diff --git a/gdb/testsuite/gdb.base/miscexprs.exp b/gdb/testsuite/gdb.base/miscexprs.exp
index b22b7f4..43665ff 100644
--- a/gdb/testsuite/gdb.base/miscexprs.exp
+++ b/gdb/testsuite/gdb.base/miscexprs.exp
@@ -69,7 +69,7 @@ if ![runto_main] then {
continue
}
-gdb_test "break marker1" "" ""
+gdb_test "break marker1" ".*" ""
gdb_test "cont" \
"Break.* marker1 \\(\\) at .*:$decimal.*" \
diff --git a/gdb/testsuite/gdb.base/pointers.exp b/gdb/testsuite/gdb.base/pointers.exp
index 4d577c9..e671bfb 100644
--- a/gdb/testsuite/gdb.base/pointers.exp
+++ b/gdb/testsuite/gdb.base/pointers.exp
@@ -215,7 +215,7 @@ gdb_test "print **ptr_to_ptr_to_float" " = 100" \
# with elementary type variables and pointers.
#
-gdb_test "break marker1" "" ""
+gdb_test "break marker1" ".*" ""
gdb_test "cont" "Break.* marker1 \\(\\) at .*:$decimal.*" \
continue to marker1"
gdb_test "up" "more_code.*" "up from marker1"
diff --git a/gdb/testsuite/gdb.base/readline.exp b/gdb/testsuite/gdb.base/readline.exp
index 62fe14a..761ff1c 100644
--- a/gdb/testsuite/gdb.base/readline.exp
+++ b/gdb/testsuite/gdb.base/readline.exp
@@ -136,7 +136,7 @@ proc operate_and_get_next {name args} {
}
# Match the prompt so the next test starts at the right place.
- gdb_test "" "" "$name - final prompt"
+ gdb_test "" ".*" "$name - final prompt"
return 1
}
diff --git a/gdb/testsuite/gdb.base/reread.exp b/gdb/testsuite/gdb.base/reread.exp
index 17d0da3..53ffa14 100644
--- a/gdb/testsuite/gdb.base/reread.exp
+++ b/gdb/testsuite/gdb.base/reread.exp
@@ -53,7 +53,7 @@ gdb_reinitialize_dir $srcdir/$subdir
# Load the first executable.
-gdb_test "shell mv ${binfile1} ${binfile}" "" ""
+gdb_test "shell mv ${binfile1} ${binfile}" ".*" ""
gdb_load ${binfile}
# Set a breakpoint at foo
@@ -82,10 +82,10 @@ gdb_expect {
# second executable into its place. Ensure that the new
# executable is at least a second newer than the old.
-gdb_test "shell mv ${binfile} ${binfile1}" "" ""
-gdb_test "shell mv ${binfile2} ${binfile}" "" ""
-gdb_test "shell sleep 1" "" ""
-gdb_test "shell touch ${binfile}" "" ""
+gdb_test "shell mv ${binfile} ${binfile1}" ".*" ""
+gdb_test "shell mv ${binfile2} ${binfile}" ".*" ""
+gdb_test "shell sleep 1" ".*" ""
+gdb_test "shell touch ${binfile}" ".*" ""
# Run a second time; GDB should detect that the executable has changed
# and reset the breakpoints correctly.
@@ -120,8 +120,8 @@ if [is_remote target] {
} else {
# Put the older executable back in place.
- gdb_test "shell mv ${binfile} ${binfile2}" "" ""
- gdb_test "shell mv ${binfile1} ${binfile}" "" ""
+ gdb_test "shell mv ${binfile} ${binfile2}" ".*" ""
+ gdb_test "shell mv ${binfile1} ${binfile}" ".*" ""
# Restart GDB entirely.
gdb_start
@@ -155,8 +155,8 @@ if [is_remote target] {
# Now move the newer executable into place, and re-run. GDB
# should still notice that the executable file has changed,
# and still re-set the breakpoint appropriately.
- gdb_test "shell mv ${binfile} ${binfile1}" "" ""
- gdb_test "shell mv ${binfile2} ${binfile}" "" ""
+ gdb_test "shell mv ${binfile} ${binfile1}" ".*" ""
+ gdb_test "shell mv ${binfile2} ${binfile}" ".*" ""
gdb_run_cmd
gdb_expect {
-re ".*Breakpoint.* foo .* at .*:9.*$gdb_prompt $" {
diff --git a/gdb/testsuite/gdb.base/restore.exp b/gdb/testsuite/gdb.base/restore.exp
index 4a2eb87..708a1c2 100644
--- a/gdb/testsuite/gdb.base/restore.exp
+++ b/gdb/testsuite/gdb.base/restore.exp
@@ -98,7 +98,7 @@ proc restore_tests { } {
}
}
} else {
- gdb_test "continue" "" ""
+ gdb_test "continue" ".*" ""
}
}
diff --git a/gdb/testsuite/gdb.base/shlib-call.exp b/gdb/testsuite/gdb.base/shlib-call.exp
index a11199a..a12b805 100644
--- a/gdb/testsuite/gdb.base/shlib-call.exp
+++ b/gdb/testsuite/gdb.base/shlib-call.exp
@@ -94,7 +94,7 @@ if ![gdb_skip_stdio_test "next over shr1"] {
"address of sgs is $hex.*g = shr2\\(g\\);" \
"next over shr1"
} else {
- gdb_test "next" "" ""
+ gdb_test "next" ".*" ""
}
diff --git a/gdb/testsuite/gdb.base/valgrind-db-attach.exp b/gdb/testsuite/gdb.base/valgrind-db-attach.exp
index 05540e7..9ef36d0 100644
--- a/gdb/testsuite/gdb.base/valgrind-db-attach.exp
+++ b/gdb/testsuite/gdb.base/valgrind-db-attach.exp
@@ -71,7 +71,7 @@ gdb_test_multiple "" $test {
}
}
-gdb_test "" "" "eat first prompt"
+gdb_test "" ".*" "eat first prompt"
# Initialization from default_gdb_start.
gdb_test_no_output "set height 0"
diff --git a/gdb/testsuite/gdb.base/volatile.exp b/gdb/testsuite/gdb.base/volatile.exp
index ecb3455..c061591 100644
--- a/gdb/testsuite/gdb.base/volatile.exp
+++ b/gdb/testsuite/gdb.base/volatile.exp
@@ -87,7 +87,7 @@ proc local_compiler_xfail_check_2 { } {
}
}
-gdb_test "break marker1" "" ""
+gdb_test "break marker1" ".*" ""
gdb_test_multiple "cont" "continue to marker1" {
-re "Break.* marker1 \\(\\) at .*:$decimal.*$gdb_prompt $" {
diff --git a/gdb/testsuite/gdb.base/watchpoints.exp b/gdb/testsuite/gdb.base/watchpoints.exp
index a8ff3ed..37bef99 100644
--- a/gdb/testsuite/gdb.base/watchpoints.exp
+++ b/gdb/testsuite/gdb.base/watchpoints.exp
@@ -48,8 +48,8 @@ gdb_load $binfile
}
runto_main
- gdb_test "watch ival1" "" ""
- gdb_test "watch ival3" "" ""
+ gdb_test "watch ival1" ".*" ""
+ gdb_test "watch ival3" ".*" ""
set prev_timeout $timeout
set timeout 600