aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-16 21:09:32 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-16 21:09:32 +0000
commit493f3c00fe05de7ea8328027eb585ac89ca61b97 (patch)
tree3f2e87e3bde55bdb4441e0121e31885c94412310
parent8034c7498c26bc7ea5ba5f365816eb5dc731a365 (diff)
downloadgdb-493f3c00fe05de7ea8328027eb585ac89ca61b97.zip
gdb-493f3c00fe05de7ea8328027eb585ac89ca61b97.tar.gz
gdb-493f3c00fe05de7ea8328027eb585ac89ca61b97.tar.bz2
gdb/testsuite/
* gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to be const or non-const.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.cp/overload.exp4
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)"
}