* gdb.threads/fork-thread-pending.exp: Use gdb_test_no_output.
* gdb.threads/hand-call-in-thraeds.exp: Ditto.
* gdb.threads/local-watch-wrong-thread.exp: Ditto.
* gdb.threads/manythreads.exp: Ditto.
* gdb.threads/print-threads.exp: Ditto.
* gdb.threads/pthreads.exp: Ditto.
* gdb.threads/schedlock.exp: Ditto.
* gdb.threads/staticthreads.exp: Ditto.
* gdb.threads/thread-specific.exp: Ditto.
* gdb.threads/thread-unwindonsignal.exp: Ditto.
* gdb.threads/threadapply.exp: Ditto.
* gdb.threads/watchthreads.exp: Ditto.
* gdb.threads/watchthreads2.exp: Ditto.
2010-06-02 Michael Snyder <msnyder@vmware.com>
+ * gdb.threads/fork-thread-pending.exp: Use gdb_test_no_output.
+ * gdb.threads/hand-call-in-thraeds.exp: Ditto.
+ * gdb.threads/local-watch-wrong-thread.exp: Ditto.
+ * gdb.threads/manythreads.exp: Ditto.
+ * gdb.threads/print-threads.exp: Ditto.
+ * gdb.threads/pthreads.exp: Ditto.
+ * gdb.threads/schedlock.exp: Ditto.
+ * gdb.threads/staticthreads.exp: Ditto.
+ * gdb.threads/thread-specific.exp: Ditto.
+ * gdb.threads/thread-unwindonsignal.exp: Ditto.
+ * gdb.threads/threadapply.exp: Ditto.
+ * gdb.threads/watchthreads.exp: Ditto.
+ * gdb.threads/watchthreads2.exp: Ditto.
+
* gdb.python/py-block.exp: Use gdb_test_no_output.
* gdb.python/py-prettyprint.exp: Ditto.
* gdb.python/py-template.exp: Ditto.
return 0
}
-gdb_test "set follow-fork-mode child" "" "1, set follow-fork-mode child"
+gdb_test_no_output "set follow-fork-mode child" "1, set follow-fork-mode child"
gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" "1, insert fork catchpoint"
gdb_breakpoint "start" "" "1, set breakpoint at start"
return 0
}
-gdb_test "set follow-fork-mode child" "" "2, set follow-fork-mode child"
+gdb_test_no_output "set follow-fork-mode child" "2, set follow-fork-mode child"
gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" "2, insert fork catchpoint"
gdb_breakpoint "start"
# Before we start making hand function calls, turn on scheduler locking.
-gdb_test "set scheduler-locking on" "" "enable scheduler locking"
+gdb_test_no_output "set scheduler-locking on" "enable scheduler locking"
gdb_test "show scheduler-locking" ".* locking scheduler .* is \"on\"." "show scheduler locking on"
# Now hand-call a function in each thread, having the function
# Now have each hand-called function return.
# Turn confirmation off for the "return" command.
-gdb_test "set confirm off" ""
+gdb_test_no_output "set confirm off"
clear_xfail "*-*-*"
}
}
-# Before we resume the full program, turn of scheduler locking.
-gdb_test "set scheduler-locking off" "" "disable scheduler locking"
+# Before we resume the full program, turn off scheduler locking.
+gdb_test_no_output "set scheduler-locking off" "disable scheduler locking"
gdb_test "show scheduler-locking" ".* locking scheduler .* is \"off\"." "show scheduler locking off"
# Continue one last time, the program should exit normally.
"local watchpoint is still in breakpoint list"
# Make the watchpoint condition eval true.
-gdb_test "set trigger=1" "" "let local watchpoint trigger"
+gdb_test_no_output "set trigger=1" "let local watchpoint trigger"
gdb_test "continue" \
"Hardware watchpoint.*Old value.*New value.*thread_function0.*" \
# Confirm that the local watchpoint is indeed deleted when
# thread_function0 returns.
-gdb_test "set *myp=0" "" "let thread_function0 return"
+gdb_test_no_output "set *myp=0" "let thread_function0 return"
gdb_test "break ${srcfile}:${bkpt_here}" \
"Breakpoint 6 at .*: file .*${srcfile}, line .*" \
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-gdb_test "set print sevenbit-strings" ""
+gdb_test_no_output "set print sevenbit-strings"
runto_main
# We'll need this when we send_gdb a ^C to GDB. Need to do it before we
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-gdb_test "set print sevenbit-strings" ""
-#gdb_test "set print address off" ""
-gdb_test "set width 0" ""
+gdb_test_no_output "set print sevenbit-strings"
+#gdb_test_no_output "set print address off"
+gdb_test_no_output "set width 0"
# We'll need this when we send_gdb a ^C to GDB. Need to do it before we
# run the program and gdb starts saving and restoring tty states.
runto_main
gdb_test "break thread_function" "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*print-threads.c, line \[0-9\]*\\."
-gdb_test "set var slow = 0" ""
+gdb_test_no_output "set var slow = 0"
test_all_threads "fast" 0
runto_main
gdb_test "break thread_function" "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*print-threads.c, line \[0-9\]*\\." "break thread_function (2)"
-gdb_test "set var slow = 1" ""
+gdb_test_no_output "set var slow = 1"
test_all_threads "slow" 0
runto_main
gdb_test "break thread_function" "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*print-threads.c, line \[0-9\]*\\." "break thread_function (3)"
-gdb_test "set var slow = 1" "" "set var slow = 1 (2)"
+gdb_test_no_output "set var slow = 1" "set var slow = 1 (2)"
gdb_breakpoint "kill"
test_all_threads "slow with kill breakpoint" 1
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-gdb_test "set print sevenbit-strings" ""
-#gdb_test "set print address off" ""
-gdb_test "set width 0" ""
+gdb_test_no_output "set print sevenbit-strings"
+#gdb_test_no_output "set print address off"
+gdb_test_no_output "set width 0"
# We'll need this when we send_gdb a ^C to GDB. Need to do it before we
# run the program and gdb starts saving and restoring tty states.
global srcfile
# Reset all the counters to zero.
- gdb_test "set var common_routine::hits=0" ""
- gdb_test "set var common_routine::from_thread1=0" ""
- gdb_test "set var common_routine::from_thread2=0" ""
- gdb_test "set var common_routine::from_main=0" ""
- gdb_test "set var common_routine::full_coverage=0" ""
+ gdb_test_no_output "set var common_routine::hits=0"
+ gdb_test_no_output "set var common_routine::from_thread1=0"
+ gdb_test_no_output "set var common_routine::from_thread2=0"
+ gdb_test_no_output "set var common_routine::from_main=0"
+ gdb_test_no_output "set var common_routine::full_coverage=0"
# Disable all breakpoints.
- gdb_test "disable" ""
+ gdb_test_no_output "disable"
# Set up a breakpoint that will cause us to stop when we have
# been called 15 times. This should be plenty of time to allow
gdb_test "continue" \
"Continuing.*Breakpoint .*, thread1 \\(arg=0xfeedface\\).*at.*$srcfile.*" \
"Continue to creation of first thread"
- gdb_test "disable" ""
+ gdb_test_no_output "disable"
# Extract the thread id number of thread 1 from "info threads" output.
gdb_test_multiple "info threads" "get thread 1 id" {
gdb_load ${binfile}
-gdb_test "set print sevenbit-strings" ""
-gdb_test "set width 0" ""
+gdb_test_no_output "set print sevenbit-strings"
+gdb_test_no_output "set width 0"
runto_main
# Test stepping without scheduler locking.
-gdb_test "set scheduler-locking off" ""
+gdb_test_no_output "set scheduler-locking off"
step_ten_loops "unlocked"
}
# Test continue with scheduler locking
-gdb_test "set scheduler-locking on" ""
+gdb_test "set scheduler-locking on" ""
my_continue "with lock"
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-gdb_test "set print sevenbit-strings" ""
+gdb_test_no_output "set print sevenbit-strings"
# See if the static multi-threaded program runs.
gdb_load ${binfile}
-gdb_test "set print sevenbit-strings" ""
-gdb_test "set width 0" ""
+gdb_test_no_output "set print sevenbit-strings"
+gdb_test_no_output "set width 0"
runto_main
# Do turn on unwindonsignal.
# We want to test gdb handling of the current thread changing when
# unwindonsignal is in effect.
-gdb_test "set unwindonsignal on" \
- "" \
+gdb_test_no_output "set unwindonsignal on" \
"setting unwindonsignal"
gdb_test "show unwindonsignal" \
"Unwinding of stack .* is on." \
# Cause backtraces to fail by setting a limit. This allows us to
# verify that the macro can get past the backtrace error and perform
# subsequent commands.
-gdb_test "set backtrace limit 3" ""
+gdb_test_no_output "set backtrace limit 3"
gdb_test "thread apply all backthread" "Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14.*Thread ..*\\\$\[0-9]+ = 0x14"
# Go into the thread_function to check that a simple "thread apply"
# 10 is chosen so we're guaranteed to come through here.
if { $hwwp_2_enabled && $hwwp_3_enabled } {
if { $args_0 >= 10 && $hwwp_2_enabled } {
- gdb_test "disable 2" "" "disable first watchpoint at 10"
+ gdb_test_no_output "disable 2" "disable first watchpoint at 10"
set hwwp_2_enabled 0
} elseif { $args_1 >= 10 && $hwwp_3_enabled } {
- gdb_test "disable 3" "" "disable first watchpoint at 10"
+ gdb_test_no_output "disable 3" "disable first watchpoint at 10"
set hwwp_3_enabled 0
}
}
gdb_test "watch x" "Hardware watchpoint 3: x"
# Now that the watchpoint is set, we can let the threads increment X.
-gdb_test "set var test_ready = 1" ""
+gdb_test_no_output "set var test_ready = 1"
# While debugging.
-#gdb_test "set debug infrun 1" ""
+#gdb_test_no_output "set debug infrun 1"
set x_inc_line [gdb_get_line_number "X increment"]
set x_thread_loc "thread_function \\\(arg=.*\\\) at .*watchthreads.c:$x_inc_line"