* gdb.base/async.exp: Whitespace fixes. Turn on target-async.

Fix spelling of exec-done-display.
This commit is contained in:
Doug Evans
2014-03-18 19:19:51 -04:00
parent 1d09f4731b
commit 0172b6a7de
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2014-03-18 Doug Evans <xdje42@gmail.com>
* gdb.base/async.exp: Whitespace fixes. Turn on target-async.
Fix spelling of exec-done-display.
2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com> 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
PR gdb/15358 PR gdb/15358

View File

@ -41,15 +41,17 @@ set current_target [target_info gdb_protocol]
if { $current_target == "remote" } { if { $current_target == "remote" } {
unset_board_info "gdb_protocol" unset_board_info "gdb_protocol"
set_board_info "gdb_protocol" "async" set_board_info "gdb_protocol" "async"
} else { } else {
return 0 return 0
} }
gdb_exit gdb_exit
gdb_start gdb_start
gdb_reinitialize_dir $srcdir/$subdir gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile} gdb_load ${binfile}
gdb_test_no_output "set target-async on"
# #
# set it up at a breakpoint so we can play with it # set it up at a breakpoint so we can play with it
# #
@ -63,7 +65,7 @@ gdb_test "break baz" ".*" ""
# #
# Make sure we get a 'completed' message when the target is done. # Make sure we get a 'completed' message when the target is done.
# #
gdb_test "set display-exec-done on" ".*" "" gdb_test_no_output "set exec-done-display on"
send_gdb "next&\n" send_gdb "next&\n"
@ -126,7 +128,7 @@ gdb_expect {
timeout { fail "(timeout) until &" } timeout { fail "(timeout) until &" }
} }
gdb_test "set display-exec-done off" ".*" "" gdb_test_no_output "set exec-done-display off"
unset_board_info "gdb_protocol" unset_board_info "gdb_protocol"
set_board_info "gdb_protocol" "remote" set_board_info "gdb_protocol" "remote"