Change gdb.dlang to use clean_restart more consistently.
test_demangling "_D3std6socket23UnknownAddressReference6__ctorMFPS4core3sys5posix3sys6socket8sockaddrkZC3std6socket23UnknownAddressReference" "std.socket.UnknownAddressReference.this(core.sys.posix.sys.socket.sockaddr*, uint)"
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
+clean_restart
if [set_lang_d] {
gdb_test_no_output "set width 0"
gdb_test "print \[1, 2\] ~ \[2, 3\]" " = \\\{1, 2, 2, 3\\\}"
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
+clean_restart
if [set_lang_d] {
test_d_integer_literals
gdb_test "ptype dchar" "type = dchar"
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
+clean_restart
if [set_lang_d] {
test_builtin_d_types_accepted
gdb_test "ptype typeof(7.0f ^^ 3)" "type = float"
}
-# Start with a fresh gdb.
-
-gdb_exit
-gdb_start
+clean_restart
if [set_lang_d] {
test_d_sizeof