From bcd2dc50216d1d999136fad724e1fdafa67f1c69 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 28 May 2010 18:26:41 +0000 Subject: [PATCH] 2010-05-28 Michael Snyder * gdb.reverse/break-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/break-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/consecutive-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/consecutive-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/finish-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/finish-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i386-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i386-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i386-sse-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i387-env-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/i387-stack-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/machinestate-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/machinestate.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/sigall-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/sigall-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/solib-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/solib-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/step-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/step-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/until-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/until-reverse.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/watch-precsave.exp: Replace uses of send_gdb / gdb_expect. * gdb.reverse/watch-reverse.exp: Replace uses of send_gdb / gdb_expect. --- gdb/testsuite/ChangeLog | 49 +++++++++++++++++++ gdb/testsuite/gdb.reverse/break-precsave.exp | 8 ++- gdb/testsuite/gdb.reverse/break-reverse.exp | 8 ++- .../gdb.reverse/consecutive-precsave.exp | 6 +-- .../gdb.reverse/consecutive-reverse.exp | 6 +-- gdb/testsuite/gdb.reverse/finish-precsave.exp | 5 +- gdb/testsuite/gdb.reverse/finish-reverse.exp | 5 +- gdb/testsuite/gdb.reverse/i386-precsave.exp | 3 +- gdb/testsuite/gdb.reverse/i386-reverse.exp | 3 +- .../gdb.reverse/i386-sse-reverse.exp | 3 +- .../gdb.reverse/i387-env-reverse.exp | 6 +-- .../gdb.reverse/i387-stack-reverse.exp | 6 +-- .../gdb.reverse/machinestate-precsave.exp | 3 +- gdb/testsuite/gdb.reverse/machinestate.exp | 3 +- gdb/testsuite/gdb.reverse/sigall-precsave.exp | 3 +- gdb/testsuite/gdb.reverse/sigall-reverse.exp | 3 +- gdb/testsuite/gdb.reverse/solib-precsave.exp | 3 +- gdb/testsuite/gdb.reverse/solib-reverse.exp | 3 +- gdb/testsuite/gdb.reverse/step-precsave.exp | 8 ++- gdb/testsuite/gdb.reverse/step-reverse.exp | 8 ++- gdb/testsuite/gdb.reverse/until-precsave.exp | 6 +-- gdb/testsuite/gdb.reverse/until-reverse.exp | 6 +-- gdb/testsuite/gdb.reverse/watch-precsave.exp | 12 ++--- gdb/testsuite/gdb.reverse/watch-reverse.exp | 12 ++--- 24 files changed, 96 insertions(+), 82 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 286526819c5..1409093083b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,52 @@ +2010-05-28 Michael Snyder + + * gdb.reverse/break-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/break-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/consecutive-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/consecutive-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/finish-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/finish-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/i386-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/i386-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/i386-sse-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/i387-env-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/i387-stack-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/machinestate-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/machinestate.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/sigall-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/sigall-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/solib-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/solib-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/step-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/step-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/until-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/until-reverse.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/watch-precsave.exp: + Replace uses of send_gdb / gdb_expect. + * gdb.reverse/watch-reverse.exp: + Replace uses of send_gdb / gdb_expect. + 2010-05-28 Jan Kratochvil * gdb.base/sepdebug.exp (info silent break bp_location1): Fix racy diff --git a/gdb/testsuite/gdb.reverse/break-precsave.exp b/gdb/testsuite/gdb.reverse/break-precsave.exp index c8fe84d8668..e2adba3b622 100644 --- a/gdb/testsuite/gdb.reverse/break-precsave.exp +++ b/gdb/testsuite/gdb.reverse/break-precsave.exp @@ -37,8 +37,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } gdb_test "break $end_location" \ @@ -77,8 +76,7 @@ gdb_test_multiple "continue" "go to end of main forward" { } } -# FIXME 'set exec-dir' command should give some output so we can test. -gdb_test "set exec-direction reverse" "" "set reverse" +gdb_test_no_output "set exec-direction reverse" "set reverse" gdb_continue_to_breakpoint "bar backward" ".*/$srcfile:$bar_location.*" gdb_continue_to_breakpoint "foo backward" ".*/$srcfile:$foo_location.*" @@ -92,7 +90,7 @@ gdb_test_multiple "continue" "main backward" { } } -gdb_test "set exec-direction forward" "" "set forward" +gdb_test_no_output "set exec-direction forward" "set forward" gdb_continue_to_breakpoint "foo" ".*/$srcfile:$foo_location.*" gdb_continue_to_breakpoint "bar" ".*/$srcfile:$bar_location.*" diff --git a/gdb/testsuite/gdb.reverse/break-reverse.exp b/gdb/testsuite/gdb.reverse/break-reverse.exp index 07b5de6f967..5ecb940401b 100644 --- a/gdb/testsuite/gdb.reverse/break-reverse.exp +++ b/gdb/testsuite/gdb.reverse/break-reverse.exp @@ -36,8 +36,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } gdb_test "break foo" \ @@ -56,8 +55,7 @@ gdb_continue_to_breakpoint "foo" ".*/$srcfile:$foo_location.*" gdb_continue_to_breakpoint "bar" ".*/$srcfile:$bar_location.*" gdb_continue_to_breakpoint "end" ".*/$srcfile:$end_location.*" -# FIXME 'set exec-dir' command should give some output so we can test. -gdb_test "set exec-direction reverse" "" "set reverse" +gdb_test_no_output "set exec-direction reverse" "set reverse" gdb_continue_to_breakpoint "bar backward" ".*/$srcfile:$bar_location.*" gdb_continue_to_breakpoint "foo backward" ".*/$srcfile:$foo_location.*" @@ -71,7 +69,7 @@ gdb_test_multiple "continue" "main backward" { } } -gdb_test "set exec-direction forward" "" "set forward" +gdb_test_no_output "set exec-direction forward" "set forward" gdb_continue_to_breakpoint "foo" ".*/$srcfile:$foo_location.*" gdb_continue_to_breakpoint "bar" ".*/$srcfile:$bar_location.*" diff --git a/gdb/testsuite/gdb.reverse/consecutive-precsave.exp b/gdb/testsuite/gdb.reverse/consecutive-precsave.exp index a709aa12ef8..b1f0fa1ebc5 100644 --- a/gdb/testsuite/gdb.reverse/consecutive-precsave.exp +++ b/gdb/testsuite/gdb.reverse/consecutive-precsave.exp @@ -32,8 +32,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } set end_location [gdb_get_line_number "end of main" ] @@ -95,9 +94,8 @@ gdb_test_multiple "step" $testmsg { ### # Set reverse execution direction -# FIXME: command needs to acknowledge, so we can test if it succeeded. -gdb_test "set exec-dir reverse" "" "set reverse execution" +gdb_test_no_output "set exec-dir reverse" "set reverse execution" # Now step backward and hope to hit the first breakpoint. diff --git a/gdb/testsuite/gdb.reverse/consecutive-reverse.exp b/gdb/testsuite/gdb.reverse/consecutive-reverse.exp index 65aaf762018..d45fb0cc6a3 100644 --- a/gdb/testsuite/gdb.reverse/consecutive-reverse.exp +++ b/gdb/testsuite/gdb.reverse/consecutive-reverse.exp @@ -31,8 +31,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } gdb_breakpoint foo @@ -76,9 +75,8 @@ gdb_test_multiple "step" $testmsg { ### # Set reverse execution direction -# FIXME: command needs to acknowledge, so we can test if it succeeded. -gdb_test "set exec-dir reverse" "" "set reverse execution" +gdb_test_no_output "set exec-dir reverse" "set reverse execution" # Now step backward and hope to hit the first breakpoint. diff --git a/gdb/testsuite/gdb.reverse/finish-precsave.exp b/gdb/testsuite/gdb.reverse/finish-precsave.exp index f93cfd8afa1..17d22f0f91d 100644 --- a/gdb/testsuite/gdb.reverse/finish-precsave.exp +++ b/gdb/testsuite/gdb.reverse/finish-precsave.exp @@ -31,8 +31,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } # Run until end, then save execution log. @@ -175,7 +174,7 @@ gdb_test_multiple "finish" "$test_msg" { ### # Now switch to reverse -gdb_test "set exec-dir reverse" "" "set reverse execution" +gdb_test_no_output "set exec-dir reverse" "set reverse execution" # Test reverse finish from long long func diff --git a/gdb/testsuite/gdb.reverse/finish-reverse.exp b/gdb/testsuite/gdb.reverse/finish-reverse.exp index defc65c5595..3d958875c9a 100644 --- a/gdb/testsuite/gdb.reverse/finish-reverse.exp +++ b/gdb/testsuite/gdb.reverse/finish-reverse.exp @@ -31,8 +31,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } # Test finish from void func @@ -155,7 +154,7 @@ gdb_test_multiple "finish" "$test_msg" { ### # Now switch to reverse -gdb_test "set exec-dir reverse" "" "set reverse execution" +gdb_test_no_output "set exec-dir reverse" "set reverse execution" # Test reverse finish from long long func diff --git a/gdb/testsuite/gdb.reverse/i386-precsave.exp b/gdb/testsuite/gdb.reverse/i386-precsave.exp index 879d0cee4ee..a20df0a8470 100644 --- a/gdb/testsuite/gdb.reverse/i386-precsave.exp +++ b/gdb/testsuite/gdb.reverse/i386-precsave.exp @@ -63,8 +63,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } global hex diff --git a/gdb/testsuite/gdb.reverse/i386-reverse.exp b/gdb/testsuite/gdb.reverse/i386-reverse.exp index 50a590f472b..920c65fad39 100644 --- a/gdb/testsuite/gdb.reverse/i386-reverse.exp +++ b/gdb/testsuite/gdb.reverse/i386-reverse.exp @@ -62,8 +62,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } global hex diff --git a/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp b/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp index b2ec68696d3..ca653060d65 100644 --- a/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp +++ b/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp @@ -63,8 +63,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } global hex diff --git a/gdb/testsuite/gdb.reverse/i387-env-reverse.exp b/gdb/testsuite/gdb.reverse/i387-env-reverse.exp index 79dd191aba5..1d77799b5b2 100644 --- a/gdb/testsuite/gdb.reverse/i387-env-reverse.exp +++ b/gdb/testsuite/gdb.reverse/i387-env-reverse.exp @@ -52,17 +52,17 @@ runto main # Record to end of main set location [gdb_get_line_number "END I387-FLOAT-REVERSE"] -gdb_test "record" "" "Turn on process record" +gdb_test_no_output "record" "Turn on process record" gdb_test "until $location" ".*/$srcfile:$location.*" \ "record to end of main" # Now rewind to beginning so we can begin testing. set location [gdb_get_line_number "BEGIN I387-FLOAT-REVERSE"] -gdb_test "set exec-dir reverse" "" "set reverse direction" +gdb_test_no_output "set exec-dir reverse" "set reverse direction" gdb_test "until $location" ".*/$srcfile:$location.*" \ "rewind to beginning of main" -gdb_test "set exec-dir forward" "" "set forward direction" +gdb_test_no_output "set exec-dir forward" "set forward direction" # Test FPU env particularly ftag and fstatus reigters. diff --git a/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp b/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp index 179eddf7ec2..dc529beed2c 100644 --- a/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp +++ b/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp @@ -52,17 +52,17 @@ runto main # Record to end of main set location [gdb_get_line_number "END I387-FLOAT-REVERSE"] -gdb_test "record" "" "Turn on process record" +gdb_test_no_output "record" "Turn on process record" gdb_test "until $location" ".*/$srcfile:$location.*" \ "record to end of main" # Now rewind to beginning so we can begin testing. set location [gdb_get_line_number "BEGIN I387-FLOAT-REVERSE"] -gdb_test "set exec-dir reverse" "" "set reverse direction" +gdb_test_no_output "set exec-dir reverse" "set reverse direction" gdb_test "until $location" ".*/$srcfile:$location.*" \ "rewind to beginning of main" -gdb_test "set exec-dir forward" "" "set forward direction" +gdb_test_no_output "set exec-dir forward" "set forward direction" # Test FPU stack. FPU stack includes st0, st1, st2, st3, st4, # st5, st6, st7. We push 8 values to FPU stack in record mode diff --git a/gdb/testsuite/gdb.reverse/machinestate-precsave.exp b/gdb/testsuite/gdb.reverse/machinestate-precsave.exp index 143a5d5b0ba..6eb6d10824d 100644 --- a/gdb/testsuite/gdb.reverse/machinestate-precsave.exp +++ b/gdb/testsuite/gdb.reverse/machinestate-precsave.exp @@ -59,8 +59,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } gdb_test "break $endmain" \ diff --git a/gdb/testsuite/gdb.reverse/machinestate.exp b/gdb/testsuite/gdb.reverse/machinestate.exp index 9cbd03fc84b..615192e613f 100644 --- a/gdb/testsuite/gdb.reverse/machinestate.exp +++ b/gdb/testsuite/gdb.reverse/machinestate.exp @@ -58,8 +58,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } # Proceed to end of main diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp index 1206dac9a56..ab9a06700da 100644 --- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp +++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp @@ -174,8 +174,7 @@ runto gen_ABRT if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } # Run until end, then save execution log. diff --git a/gdb/testsuite/gdb.reverse/sigall-reverse.exp b/gdb/testsuite/gdb.reverse/sigall-reverse.exp index c1700fd3a9c..3ca6548e457 100644 --- a/gdb/testsuite/gdb.reverse/sigall-reverse.exp +++ b/gdb/testsuite/gdb.reverse/sigall-reverse.exp @@ -174,8 +174,7 @@ runto gen_ABRT if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } test_one_sig HUP diff --git a/gdb/testsuite/gdb.reverse/solib-precsave.exp b/gdb/testsuite/gdb.reverse/solib-precsave.exp index 4459f732909..2e18c7734a6 100644 --- a/gdb/testsuite/gdb.reverse/solib-precsave.exp +++ b/gdb/testsuite/gdb.reverse/solib-precsave.exp @@ -56,8 +56,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } set end_of_main [gdb_get_line_number "end of main" ] diff --git a/gdb/testsuite/gdb.reverse/solib-reverse.exp b/gdb/testsuite/gdb.reverse/solib-reverse.exp index fdc5b000b80..af8ca196d2a 100644 --- a/gdb/testsuite/gdb.reverse/solib-reverse.exp +++ b/gdb/testsuite/gdb.reverse/solib-reverse.exp @@ -55,8 +55,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } # diff --git a/gdb/testsuite/gdb.reverse/step-precsave.exp b/gdb/testsuite/gdb.reverse/step-precsave.exp index 79ea4167fec..c30bb748256 100644 --- a/gdb/testsuite/gdb.reverse/step-precsave.exp +++ b/gdb/testsuite/gdb.reverse/step-precsave.exp @@ -36,8 +36,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } set end_of_main [gdb_get_line_number "end of main" ] @@ -158,9 +157,8 @@ gdb_test_multiple "stepi" "$test_message" { ### # Set reverse execution direction -# FIXME: command needs to acknowledge, so we can test if it succeeded. -gdb_test "set exec-dir reverse" "" "set reverse execution" +gdb_test_no_output "set exec-dir reverse" "set reverse execution" # stepi backward thru return and into a function @@ -268,6 +266,6 @@ gdb_test "next" ".*NEXT TEST 1.*" "reverse next test 2" # Finish test by running forward to the end. # FIXME return to this later... -# gdb_test "set exec-dir forward" "" "set forward execution" +# gdb_test_no_output "set exec-dir forward" "set forward execution" # gdb_continue_to_end "step-reverse.exp" diff --git a/gdb/testsuite/gdb.reverse/step-reverse.exp b/gdb/testsuite/gdb.reverse/step-reverse.exp index 6d1c630dbec..630af808929 100644 --- a/gdb/testsuite/gdb.reverse/step-reverse.exp +++ b/gdb/testsuite/gdb.reverse/step-reverse.exp @@ -35,8 +35,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } # plain vanilla step/next (no count) @@ -139,9 +138,8 @@ gdb_test_multiple "stepi" "$test_message" { ### # Set reverse execution direction -# FIXME: command needs to acknowledge, so we can test if it succeeded. -gdb_test "set exec-dir reverse" "" "set reverse execution" +gdb_test_no_output "set exec-dir reverse" "set reverse execution" # stepi backward thru return and into a function @@ -249,6 +247,6 @@ gdb_test "next" ".*NEXT TEST 1.*" "reverse next test 2" # Finish test by running forward to the end. # FIXME return to this later... -# gdb_test "set exec-dir forward" "" "set forward execution" +# gdb_test_no_output "set exec-dir forward" "set forward execution" # gdb_continue_to_end "step-reverse.exp" diff --git a/gdb/testsuite/gdb.reverse/until-precsave.exp b/gdb/testsuite/gdb.reverse/until-precsave.exp index 26e21cea64a..e89fc57bbb0 100644 --- a/gdb/testsuite/gdb.reverse/until-precsave.exp +++ b/gdb/testsuite/gdb.reverse/until-precsave.exp @@ -40,8 +40,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } set end_of_main [gdb_get_line_number "set breakpoint 10a here" ] @@ -113,9 +112,8 @@ gdb_test_multiple "until marker3" "$test_msg" { ### # Set reverse execution direction -# FIXME: command needs to acknowledge, so we can test if it succeeded. -gdb_test "set exec-dir reverse" "" "set reverse execution" +gdb_test_no_output "set exec-dir reverse" "set reverse execution" # # We should now be at main, after the return from marker2. diff --git a/gdb/testsuite/gdb.reverse/until-reverse.exp b/gdb/testsuite/gdb.reverse/until-reverse.exp index d9c48c3fb23..f66f3a9909a 100644 --- a/gdb/testsuite/gdb.reverse/until-reverse.exp +++ b/gdb/testsuite/gdb.reverse/until-reverse.exp @@ -39,8 +39,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } # Verify that plain vanilla "until " works. @@ -94,9 +93,8 @@ gdb_test_multiple "until marker3" "$test_msg" { ### # Set reverse execution direction -# FIXME: command needs to acknowledge, so we can test if it succeeded. -gdb_test "set exec-dir reverse" "" "set reverse execution" +gdb_test_no_output "set exec-dir reverse" "set reverse execution" # # We should now be at main, after the return from marker2. diff --git a/gdb/testsuite/gdb.reverse/watch-precsave.exp b/gdb/testsuite/gdb.reverse/watch-precsave.exp index d336766a0e8..6c7c7f6ce26 100644 --- a/gdb/testsuite/gdb.reverse/watch-precsave.exp +++ b/gdb/testsuite/gdb.reverse/watch-precsave.exp @@ -34,8 +34,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } set end_location [gdb_get_line_number "end of main" ] @@ -110,8 +109,7 @@ gdb_continue_to_breakpoint "marker2" ".*/$srcfile:.*" ### ### -# FIXME 'set exec-dir' command should give some output so we can test. -gdb_test "set exec-direction reverse" "" "set reverse" +gdb_test_no_output "set exec-direction reverse" "set reverse" # Reverse until the previous change, from 4 to 3 # Note that this one is outside the loop @@ -147,8 +145,7 @@ gdb_test "set can-use-hw-watchpoints 1" "" "enable hw watchpoints" ### ### -# FIXME 'set exec-dir' command should give some output so we can test. -gdb_test "set exec-direction forward" "" "set forward" +gdb_test_no_output "set exec-direction forward" "set forward" # Continue until first change, from -1 to 0 @@ -187,8 +184,7 @@ gdb_test "continue" "marker2 .*" "replay forward to marker2" ### ### -# FIXME 'set exec-dir' command should give some output so we can test. -gdb_test "set exec-direction reverse" "" "set reverse" +gdb_test_no_output "set exec-direction reverse" "set reverse" # Reverse until the previous change, from 4 to 3 # Note that this one is outside the loop diff --git a/gdb/testsuite/gdb.reverse/watch-reverse.exp b/gdb/testsuite/gdb.reverse/watch-reverse.exp index 6cf7c036d1e..dacb27aaf82 100644 --- a/gdb/testsuite/gdb.reverse/watch-reverse.exp +++ b/gdb/testsuite/gdb.reverse/watch-reverse.exp @@ -34,8 +34,7 @@ runto main if [target_info exists gdb,use_precord] { # Activate process record/replay - gdb_test "record" "" "Turn on process record" - # FIXME: command ought to acknowledge, so we can test if it succeeded. + gdb_test_no_output "record" "Turn on process record" } # Test software watchpoints @@ -92,8 +91,7 @@ gdb_continue_to_breakpoint "marker2" ".*/$srcfile:.*" ### ### -# FIXME 'set exec-dir' command should give some output so we can test. -gdb_test "set exec-direction reverse" "" "set reverse" +gdb_test_no_output "set exec-direction reverse" "set reverse" # Reverse until the previous change, from 4 to 3 # Note that this one is outside the loop @@ -129,8 +127,7 @@ gdb_test "set can-use-hw-watchpoints 1" "" "enable hw watchpoints" ### ### -# FIXME 'set exec-dir' command should give some output so we can test. -gdb_test "set exec-direction forward" "" "set forward" +gdb_test_no_output "set exec-direction forward" "set forward" # Continue until first change, from -1 to 0 @@ -169,8 +166,7 @@ gdb_test "continue" "marker2 .*" "replay forward to marker2" ### ### -# FIXME 'set exec-dir' command should give some output so we can test. -gdb_test "set exec-direction reverse" "" "set reverse" +gdb_test_no_output "set exec-direction reverse" "set reverse" # Reverse until the previous change, from 4 to 3 # Note that this one is outside the loop -- 2.30.2