[19/27] Use clean_restart in gdb.ada
Commit Message
Change gdb.ada to use clean_restart more consistently.
---
gdb/testsuite/gdb.ada/assign_1.exp | 4 +---
gdb/testsuite/gdb.ada/boolean_expr.exp | 4 +---
gdb/testsuite/gdb.ada/ptype_arith_binop.exp | 4 +---
3 files changed, 3 insertions(+), 9 deletions(-)
@@ -17,9 +17,7 @@ load_lib "ada.exp"
require allow_ada_tests
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
# Force the language to Ada, as this will not happen automatically
# in this case (no test program).
@@ -17,9 +17,7 @@ load_lib "ada.exp"
require allow_ada_tests
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
set any_nb "\[0-9\]+"
set any_addr "0x\[0-9a-zA-Z\]+"
@@ -15,9 +15,7 @@
require allow_ada_tests
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
+clean_restart
gdb_test_no_output "set lang ada" \
"set lang ada"