aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/printmethod.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-12-07 23:07:54 +0000
committerDaniel Jacobowitz <drow@false.org>2005-12-07 23:07:54 +0000
commit55b3918466201c8e9fd7ee97975fd7b5a2ee74ee (patch)
tree32d4fd5cbfd415ae204094d4cf974e2692c5d724 /gdb/testsuite/gdb.cp/printmethod.exp
parent7b6792f929b2a51885204813c3f32ba8231ba980 (diff)
downloadfsf-binutils-gdb-55b3918466201c8e9fd7ee97975fd7b5a2ee74ee.zip
fsf-binutils-gdb-55b3918466201c8e9fd7ee97975fd7b5a2ee74ee.tar.gz
fsf-binutils-gdb-55b3918466201c8e9fd7ee97975fd7b5a2ee74ee.tar.bz2
gdb/
* valops.c (value_struct_elt): Clarify error message. gdb/testsuite/ 2005-12-07 Christophe Lyon <christophe.lyon@st.com> * gdb.cp/printmethod.cc (main): Call virt and nonvirt, to force code generation for these functions. * gdb.cp/printmethod.exp: Expect "&A::nonvirt()" instead of an error message.
Diffstat (limited to 'gdb/testsuite/gdb.cp/printmethod.exp')
-rw-r--r--gdb/testsuite/gdb.cp/printmethod.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.cp/printmethod.exp b/gdb/testsuite/gdb.cp/printmethod.exp
index a45393f..67372cd 100644
--- a/gdb/testsuite/gdb.cp/printmethod.exp
+++ b/gdb/testsuite/gdb.cp/printmethod.exp
@@ -1,4 +1,4 @@
-# Copyright 2002, 2003 Free Software Foundation, Inc.
+# Copyright 2002, 2003, 2005 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
@@ -63,7 +63,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\\((void|)\\)" "print virtual method."
-gdb_test "print theA->nonvirt" "Cannot take address of a method" "print nonvirtual method."
+gdb_test "print theA->nonvirt" "\\$\[0-9\]* = &A::nonvirt\\((void|)\\)" "print nonvirtual method."
gdb_exit
return 0