From: Jim Kingdon Date: Sat, 25 Dec 1993 19:28:47 +0000 (+0000) Subject: Sat Dec 25 09:50:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=008d4449a7c9e0eaa3a9715303b5e4e7ec467062;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4b3e4160910..7ea8c77c973 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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. + Sat Dec 25 09:50:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * defs.h: Move definitions of TARGET_*_BIT after include of tm.h. @@ -207,7 +212,7 @@ Mon Nov 29 16:48:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) Mon Nov 29 12:23:25 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) - * mipsread.c (parse_symbol, parse_partial_symbols): Do not create + * mipsread.c (parse_symbol, parse_partial_symbols): Do not create (partial) symbols for opaque struct definitions. Mon Nov 29 11:36:57 1993 Stu Grossman (grossman at cygnus.com) diff --git a/gdb/valops.c b/gdb/valops.c index 0ec52609d3e..0462b497c3c 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);