diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-25 14:42:39 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-26 18:28:32 -0700 |
commit | eefe81b52301076b6cdd5bec3664d1a4c4978b9f (patch) | |
tree | 310de6da916744f2a451655ba0c324c88c90c052 /gdb/testsuite | |
parent | 396b136e89e1a5b35a3b57a8662d190d1d9eef6d (diff) | |
download | gdb-eefe81b52301076b6cdd5bec3664d1a4c4978b9f.zip gdb-eefe81b52301076b6cdd5bec3664d1a4c4978b9f.tar.gz gdb-eefe81b52301076b6cdd5bec3664d1a4c4978b9f.tar.bz2 |
Use clean_restart in gdb.disasm
Change gdb.disasm to use clean_restart more consistently.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.disasm/am33.exp | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.disasm/h8300s.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.disasm/hppa.exp | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.disasm/mn10300.exp | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.disasm/sh3.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.go/basic-types.exp | 6 |
6 files changed, 6 insertions, 30 deletions
diff --git a/gdb/testsuite/gdb.disasm/am33.exp b/gdb/testsuite/gdb.disasm/am33.exp index a278f39..5193685 100644 --- a/gdb/testsuite/gdb.disasm/am33.exp +++ b/gdb/testsuite/gdb.disasm/am33.exp @@ -795,12 +795,7 @@ proc dsp_autoincrement_tests { } { } } -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile call_tests movm_tests diff --git a/gdb/testsuite/gdb.disasm/h8300s.exp b/gdb/testsuite/gdb.disasm/h8300s.exp index cd68a63..17da0ad 100644 --- a/gdb/testsuite/gdb.disasm/h8300s.exp +++ b/gdb/testsuite/gdb.disasm/h8300s.exp @@ -640,9 +640,7 @@ proc all_block_data_transfer_tests { } { } } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart all_set_machine_h8300s gdb_load $binfile diff --git a/gdb/testsuite/gdb.disasm/hppa.exp b/gdb/testsuite/gdb.disasm/hppa.exp index 19fc08b..fadbb0a 100644 --- a/gdb/testsuite/gdb.disasm/hppa.exp +++ b/gdb/testsuite/gdb.disasm/hppa.exp @@ -1365,12 +1365,7 @@ proc fmemLRbug_tests { } { } } -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile all_integer_memory_tests all_immediate_tests diff --git a/gdb/testsuite/gdb.disasm/mn10300.exp b/gdb/testsuite/gdb.disasm/mn10300.exp index 425dc06..5cf57ef 100644 --- a/gdb/testsuite/gdb.disasm/mn10300.exp +++ b/gdb/testsuite/gdb.disasm/mn10300.exp @@ -529,12 +529,7 @@ proc sub_tests { } { } } -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile add_tests bcc_tests diff --git a/gdb/testsuite/gdb.disasm/sh3.exp b/gdb/testsuite/gdb.disasm/sh3.exp index 84479ce..4be9bf5 100644 --- a/gdb/testsuite/gdb.disasm/sh3.exp +++ b/gdb/testsuite/gdb.disasm/sh3.exp @@ -100,10 +100,7 @@ proc all_fp_misc_tests { } { } } -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile +clean_restart $binfile all_fp_move_and_load_tests all_fp_arithmetic_tests diff --git a/gdb/testsuite/gdb.go/basic-types.exp b/gdb/testsuite/gdb.go/basic-types.exp index ce56ba4..ae95906 100644 --- a/gdb/testsuite/gdb.go/basic-types.exp +++ b/gdb/testsuite/gdb.go/basic-types.exp @@ -100,11 +100,7 @@ proc test_complex_literal_types_accepted {} { gdb_test "pt complex128(i1.0)" "type = complex128" } -# Start with a fresh gdb. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir +clean_restart if [set_lang_go] { test_integer_literal_types_accepted |