aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
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 0ec5260..0462b49 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1550,7 +1550,7 @@ value_struct_elt (argp, args, name, static_memfuncp, err)
v = search_struct_method (name, argp, args, 0, static_memfuncp, t);
- if (v == 0)
+ if (v == 0 || v == (value) -1)
{
if (TYPE_NFN_FIELDS (t))
error ("There is no member or method named %s.", name);