diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8e603630c1..9301efe908 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-03-26 Andrew Burgess + + * gdb.cp/cplusfuncs.exp (test_paddr_operator_functions): Escape + square brackets in test. + 2021-03-26 Andrew Burgess * gdb.cp/maint.exp (test_first_component): Run more tests with a diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp index 8e24db5db0..f1c2ff4907 100644 --- a/gdb/testsuite/gdb.cp/cplusfuncs.exp +++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp @@ -497,7 +497,7 @@ proc test_paddr_operator_functions {} { " = .* $hex " print_addr "foo::operator delete($dm_type_void_star)" - print_addr "foo::operator delete[]($dm_type_void_star)" + print_addr "foo::operator delete\[\]($dm_type_void_star)" print_addr "foo::operator int($dm_type_void)" print_addr "foo::operator $dm_operator_char_star\($dm_type_void)"