diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-25 09:26:53 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-26 18:28:31 -0700 |
commit | 9b21b701bb5725071f5304d52a6aadad1f421e9e (patch) | |
tree | 76dd7ee3934e2177da076202a8b73fabae101974 /gdb | |
parent | 6b9276b7e6905547233638c2c01b723ac7bde821 (diff) | |
download | gdb-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.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dlang/expression.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dlang/primitive-types.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dlang/properties.exp | 5 |
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 |