aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-25 09:26:53 -0700
committerTom Tromey <tom@tromey.com>2023-01-26 18:28:31 -0700
commit9b21b701bb5725071f5304d52a6aadad1f421e9e (patch)
tree76dd7ee3934e2177da076202a8b73fabae101974 /gdb
parent6b9276b7e6905547233638c2c01b723ac7bde821 (diff)
downloadgdb-9b21b701bb5725071f5304d52a6aadad1f421e9e.zip
gdb-9b21b701bb5725071f5304d52a6aadad1f421e9e.tar.gz
gdb-9b21b701bb5725071f5304d52a6aadad1f421e9e.tar.bz2
Use clean_restart in gdb.dlang
Change gdb.dlang to use clean_restart more consistently.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.dlang/demangle.exp5
-rw-r--r--gdb/testsuite/gdb.dlang/expression.exp5
-rw-r--r--gdb/testsuite/gdb.dlang/primitive-types.exp5
-rw-r--r--gdb/testsuite/gdb.dlang/properties.exp5
4 files changed, 4 insertions, 16 deletions
diff --git a/gdb/testsuite/gdb.dlang/demangle.exp b/gdb/testsuite/gdb.dlang/demangle.exp
index 111042c..c0ae925 100644
--- a/gdb/testsuite/gdb.dlang/demangle.exp
+++ b/gdb/testsuite/gdb.dlang/demangle.exp
@@ -195,10 +195,7 @@ proc test_d_demangling {} {
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"
diff --git a/gdb/testsuite/gdb.dlang/expression.exp b/gdb/testsuite/gdb.dlang/expression.exp
index 2f80b33..c7aeec5 100644
--- a/gdb/testsuite/gdb.dlang/expression.exp
+++ b/gdb/testsuite/gdb.dlang/expression.exp
@@ -127,10 +127,7 @@ proc test_d_expressions {} {
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
diff --git a/gdb/testsuite/gdb.dlang/primitive-types.exp b/gdb/testsuite/gdb.dlang/primitive-types.exp
index 3fd6d2d..7b284ba 100644
--- a/gdb/testsuite/gdb.dlang/primitive-types.exp
+++ b/gdb/testsuite/gdb.dlang/primitive-types.exp
@@ -49,10 +49,7 @@ proc test_builtin_d_types_accepted {} {
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
diff --git a/gdb/testsuite/gdb.dlang/properties.exp b/gdb/testsuite/gdb.dlang/properties.exp
index 474c18b..3b92a81 100644
--- a/gdb/testsuite/gdb.dlang/properties.exp
+++ b/gdb/testsuite/gdb.dlang/properties.exp
@@ -80,10 +80,7 @@ proc test_d_typeof {} {
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