* gdb.python/py-block.exp: Use gdb_test_no_output.
* gdb.python/py-prettyprint.exp: Ditto.
* gdb.python/py-template.exp: Ditto.
* gdb.python/py-value.exp: Ditto.
* gdb.reverse/watch-precsave.exp: Use gdb_test_no_output.
* gdb.reverse/watch-reverse.exp: Ditto.
* gdb.server/ext-attach.exp: Use gdb_test_no_output.
* gdb.server/ext-run.exp: Ditto.
2010-06-02 Michael Snyder <msnyder@vmware.com>
+ * gdb.python/py-block.exp: Use gdb_test_no_output.
+ * gdb.python/py-prettyprint.exp: Ditto.
+ * gdb.python/py-template.exp: Ditto.
+ * gdb.python/py-value.exp: Ditto.
+
+ * gdb.reverse/watch-precsave.exp: Use gdb_test_no_output.
+ * gdb.reverse/watch-reverse.exp: Ditto.
+
+ * gdb.server/ext-attach.exp: Use gdb_test_no_output.
+ * gdb.server/ext-run.exp: Ditto.
+
* gdb.dwarf2/dw2-basic.exp: Use gdb_test_no_output.
* gdb.dwarf2/dw2-compressed.exp: Ditto.
* gdb.dwarf2/dw2-intercu.exp: Ditto.
gdb_test "python print block.end" "${decimal}" "Check end not None"
# Move up superblock(s) until we reach function block_func.
-gdb_test "python block = block.superblock" "" "Get superblock"
+gdb_test_no_output "python block = block.superblock" "Get superblock"
gdb_test "python print block.function" "None" "Second anonymous block"
-gdb_test "python block = block.superblock" "" "Get superblock"
+gdb_test_no_output "python block = block.superblock" "Get superblock 2"
gdb_test "python print block.function" "block_func"
# Switch frames, then test for main block.
return
}
- gdb_test "set print pretty on" ""
+ gdb_test_no_output "set print pretty on"
gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \
".*Breakpoint.*"
set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]
- gdb_test "python execfile ('${remote_python_file}')" ""
+ gdb_test_no_output "python execfile ('${remote_python_file}')"
gdb_test "print ss" " = a=< a=<1> b=<$hex>> b=< a=<2> b=<$hex>>"
gdb_test "print ssa\[1\]" " = a=< a=<5> b=<$hex>> b=< a=<6> b=<$hex>>"
}
# There is no executable code in main(), so we are where we want to be
gdb_test "print foo" ""
- gdb_test "python foo = gdb.history(0)" ""
+ gdb_test_no_output "python foo = gdb.history(0)"
# Replace '*' with '\*' in regex.
regsub -all {\*} $type {\*} t
# Conversion test.
gdb_test "print evalue" " = TWO"
- gdb_test "python evalue = gdb.history (0)" ""
+ gdb_test_no_output "python evalue = gdb.history (0)"
gdb_test "python print int (evalue)" "2"
# Test pointer arithmethic
".*\[Ww\]atchpoint.*ival3.*Old value = 0.*New value = -1.*ival3 = count; ival4 = count;.*" \
"watchpoint hit in reverse, fifth time"
-gdb_test "set can-use-hw-watchpoints 1" "" "enable hw watchpoints"
+gdb_test_no_output "set can-use-hw-watchpoints 1" "enable hw watchpoints"
###
###
}
# Test software watchpoints
-gdb_test "set can-use-hw-watchpoints 0" "" "disable hw watchpoints"
+gdb_test_no_output "set can-use-hw-watchpoints 0" "disable hw watchpoints"
gdb_test "break marker1" \
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
".*\[Ww\]atchpoint.*ival3.*Old value = 0.*New value = -1.*ival3 = count; ival4 = count;.*" \
"watchpoint hit in reverse, fifth time"
-gdb_test "set can-use-hw-watchpoints 1" "" "enable hw watchpoints"
+gdb_test_no_output "set can-use-hw-watchpoints 1" "enable hw watchpoints"
###
###
set target_exec [gdbserver_download_current_prog]
gdbserver_start_extended
-gdb_test "set remote exec-file $target_exec" "" "set remote exec-file"
+gdb_test_no_output "set remote exec-file $target_exec" "set remote exec-file"
# Start the program running and then wait for a bit, to be sure
# that it can be attached to.
set target_exec [gdbserver_download_current_prog]
gdbserver_start_extended
-gdb_test "set remote exec-file $target_exec" "" "set remote exec-file"
+gdb_test_no_output "set remote exec-file $target_exec" "set remote exec-file"
gdb_breakpoint main
gdb_test "run" "Breakpoint.* main .*" "continue to main"