diff options
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/overload.exp | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d250507..333637f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to + be const or non-const. + +2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> + * gdb.mi/mi-break.exp (test_breakpoint_commands): Use mi_send_resuming_command to send -exec-continue. diff --git a/gdb/testsuite/gdb.cp/overload.exp b/gdb/testsuite/gdb.cp/overload.exp index 101be4a..ae8fd26 100644 --- a/gdb/testsuite/gdb.cp/overload.exp +++ b/gdb/testsuite/gdb.cp/overload.exp @@ -348,13 +348,13 @@ gdb_test "print foo::overload1arg(char***)" \ "print foo::overload1arg(char***)" gdb_test "print foo::overload1arg(void)" \ - "\\$$decimal = {int \\(foo \\* const\\)} $hex <foo::overload1arg\\(\\)>" \ + "\\$$decimal = {int \\(foo \\*( const|)\\)} $hex <foo::overload1arg\\(\\)>" \ "print foo::overload1arg(void)" foreach t [list char "signed char" "unsigned char" "short" \ "unsigned short" int "unsigned int" long "unsigned long" \ float double] { gdb_test "print foo::overload1arg($t)" \ - "\\$$decimal = {int \\(foo \\* const, $t\\)} $hex <foo::overload1arg\\($t\\)>" \ + "\\$$decimal = {int \\(foo \\*( const|), $t\\)} $hex <foo::overload1arg\\($t\\)>" \ "print foo::overload1arg($t)" } |