aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
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/valops.c
parent7b6792f929b2a51885204813c3f32ba8231ba980 (diff)
downloadgdb-55b3918466201c8e9fd7ee97975fd7b5a2ee74ee.zip
gdb-55b3918466201c8e9fd7ee97975fd7b5a2ee74ee.tar.gz
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/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 54c81ac..0b136e0 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1587,7 +1587,7 @@ value_struct_elt (struct value **argp, struct value **args,
v = search_struct_method (name, argp, args, 0, static_memfuncp, t);
if (v == (struct value *) - 1)
- error (_("Cannot take address of a method"));
+ error (_("Cannot take address of method %s."), name);
else if (v == 0)
{
if (TYPE_NFN_FIELDS (t))