diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-12-25 19:28:47 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-12-25 19:28:47 +0000 |
commit | 008d4449a7c9e0eaa3a9715303b5e4e7ec467062 (patch) | |
tree | 43f046d9f3de367b063c7367ab2bc1170fb7fabf /gdb/valops.c | |
parent | 04f566a356078edd7887a4a4de0239a1148c2544 (diff) | |
download | gdb-008d4449a7c9e0eaa3a9715303b5e4e7ec467062.zip gdb-008d4449a7c9e0eaa3a9715303b5e4e7ec467062.tar.gz gdb-008d4449a7c9e0eaa3a9715303b5e4e7ec467062.tar.bz2 |
Sat Dec 25 09:50:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* valops.c (value_struct_elt): Check for (value)-1 return from
search_struct_method.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
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); |