This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH/c++testsuite: Fix a missing (void|)
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 13 Jan 2003 23:43:42 -0500
- Subject: PATCH/c++testsuite: Fix a missing (void|)
When David added printmethod.exp, I think he didn't have a GCC 2.95 setup to
test with. Outdated as it may be, I've still got one (not for much
longer...). So here's a patch to accept the GCC 2.95 output, which is also
correct.
Previously accepted:
print theA->virt
$1 = &A::virt()
(gdb) PASS: gdb.c++/printmethod.exp: print virtual method.
Newly also accepted:
print theA->virt
$1 = &A::virt(void)
(gdb) PASS: gdb.c++/printmethod.exp: print virtual method.
This matches our style in the rest of the testsuite.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-01-13 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/printmethod.exp (print virtual method): Accept "(void)".
Index: gdb.c++/printmethod.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/printmethod.exp,v
retrieving revision 1.1
diff -u -p -r1.1 printmethod.exp
--- gdb.c++/printmethod.exp 18 Sep 2002 18:48:43 -0000 1.1
+++ gdb.c++/printmethod.exp 14 Jan 2003 04:39:38 -0000
@@ -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 const
# 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