While resolving duplicate test names I spotted that a test in
gdb.cp/cplusfuncs.exp included an unescaped '[]'. In TCL square
brackets enclose expressions to evaluate, and so in this case, where
there is no enclosed expression, this just evaluates to the empty
string.
This clearly was not what the test intended, so in this commit I have
escaped the square brackets. This has extended the test coverage.
gdb/testsuite/ChangeLog:
* gdb.cp/cplusfuncs.exp (test_paddr_operator_functions): Escape
square brackets in test.
+2021-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.cp/cplusfuncs.exp (test_paddr_operator_functions): Escape
+ square brackets in test.
+
2021-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.cp/maint.exp (test_first_component): Run more tests with a
" = .* $hex <foo::operator new\\\[\\\]\\(.*\\)(| static)>"
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)"