Joel Sherrill (joel@OARcorp.com)
[deliverable/binutils-gdb.git] / gdb / jv-valprint.c
index 6bfae7e3274e9fa8b4d98389047f27c9d5dda72b..797c16a9123ed6d00c2a852ea09a22d9394c066e 100644 (file)
@@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "defs.h"
 #include "symtab.h"
 #include "gdbtypes.h"
+#include "gdbcore.h"
 #include "expression.h"
 #include "value.h"
 #include "demangle.h"
@@ -27,6 +28,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "language.h"
 #include "jv-lang.h"
 #include "c-lang.h"
+#include "annotate.h"
 
 int
 java_value_print (val, stream, format, pretty)
@@ -402,6 +404,8 @@ java_print_value_fields (type, valaddr, address, stream,
                                 stream, format, 0, recurse+1, pretty);
                    }
                }
+             else if (TYPE_FIELD_TYPE (type, i) == NULL)
+               fputs_filtered ("<unknown type>", stream);
              else
                {
                   val_print (TYPE_FIELD_TYPE (type, i), 
This page took 0.026277 seconds and 4 git commands to generate.