From 008d4449a7c9e0eaa3a9715303b5e4e7ec467062 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 25 Dec 1993 19:28:47 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 7 ++++++- gdb/valops.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4b3e416..7ea8c77 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 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); -- 2.7.4