summaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2005-12-07 23:07:54 +0000
committerDaniel Jacobowitz <dan@debian.org>2005-12-07 23:07:54 +0000
commita5863f9dd52e0d6a533584977c2ae3c3063bddcd (patch)
tree232d4fb69b53b961968daed54cb94b8a71e936f4 /gdb/valops.c
parent05cce3199569e636e5ba81393f95a9900d5173e2 (diff)
downloadgdb-a5863f9dd52e0d6a533584977c2ae3c3063bddcd.tar.gz
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 54c81ac2f0a..0b136e0defd 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))