aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-01-14 04:40:48 +0000
committerDaniel Jacobowitz <drow@false.org>2003-01-14 04:40:48 +0000
commit6ca37014df7b9b072e686b1858102fa24e9ef930 (patch)
tree2b6c92be047a45399cac9bcdf07b4571262a6e0b
parentb00234725ecd0bffb5af0f782f31d85a4f91a01e (diff)
downloadgdb-6ca37014df7b9b072e686b1858102fa24e9ef930.zip
gdb-6ca37014df7b9b072e686b1858102fa24e9ef930.tar.gz
gdb-6ca37014df7b9b072e686b1858102fa24e9ef930.tar.bz2
* gdb.c++/printmethod.exp (print virtual method): Accept "(void)".
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.c++/printmethod.exp4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3dab6a2..f554e6a 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2003-01-13 Daniel Jacobowitz <drow@mvista.com>
+ * gdb.c++/printmethod.exp (print virtual method): Accept "(void)".
+
+2003-01-13 Daniel Jacobowitz <drow@mvista.com>
+
* gdb.base/printcmds.exp: Enable setup_kfail for gdb/538
(ptype &*"foo").
* gdb.c++/local.exp: Enable setup_kfail for gdb/482.
diff --git a/gdb/testsuite/gdb.c++/printmethod.exp b/gdb/testsuite/gdb.c++/printmethod.exp
index 9b96cbf..a45393f 100644
--- a/gdb/testsuite/gdb.c++/printmethod.exp
+++ b/gdb/testsuite/gdb.c++/printmethod.exp
@@ -1,4 +1,4 @@
-# Copyright 2002 Free Software Foundation, Inc.
+# Copyright 2002, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -62,7 +62,7 @@ gdb_continue_to_breakpoint "end of constructors"
# The first of these is for PR gdb/653.
-gdb_test "print theA->virt" "\\$\[0-9\]* = &A::virt\\(\\)" "print virtual method."
+gdb_test "print theA->virt" "\\$\[0-9\]* = &A::virt\\((void|)\\)" "print virtual method."
gdb_test "print theA->nonvirt" "Cannot take address of a method" "print nonvirtual method."
gdb_exit