aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-12-25 19:28:47 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-12-25 19:28:47 +0000
commit008d4449a7c9e0eaa3a9715303b5e4e7ec467062 (patch)
tree43f046d9f3de367b063c7367ab2bc1170fb7fabf /gdb
parent04f566a356078edd7887a4a4de0239a1148c2544 (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/valops.c2
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);