mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user