diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3813c19ac5b..2fac86e2cea 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-05-07 Andrew Burgess + + * gdb.base/ptype-offsets.exp: Replace use of send_gdb with + gdb_test_no_output. + 2021-05-07 Simon Marchi * Re-format all Python files using black. diff --git a/gdb/testsuite/gdb.base/ptype-offsets.exp b/gdb/testsuite/gdb.base/ptype-offsets.exp index cc017ad7909..3f42250c07f 100644 --- a/gdb/testsuite/gdb.base/ptype-offsets.exp +++ b/gdb/testsuite/gdb.base/ptype-offsets.exp @@ -413,7 +413,7 @@ gdb_test "ptype/o empty_member" \ with_test_prefix "with_hex_default" { # Test setting default display to hex - send_gdb "set print type hex on\n" + gdb_test_no_output "set print type hex on" gdb_test "show print type hex" \ "Display of struct members offsets and sizes in hexadecimal is on" @@ -467,5 +467,5 @@ with_test_prefix "with_hex_default" { " \}"]] # restore - send_gdb "set print type hex off\n" + gdb_test_no_output "set print type hex off" }