summaryrefslogtreecommitdiff
path: root/gdb/jv-valprint.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@apple.com>1999-04-26 18:23:13 +0000
committerStan Shebs <shebs@apple.com>1999-04-26 18:23:13 +0000
commit9f89d263d1c0db98f6807281138f97f197f82bce (patch)
tree7f9b131d895f0b5f3d54b6348e12c7c35be93e93 /gdb/jv-valprint.c
parent33573d8115710d3d6f407968b4420282e0422bbc (diff)
downloadgdb-9f89d263d1c0db98f6807281138f97f197f82bce.tar.gz
import gdb-19990422 snapshot
Diffstat (limited to 'gdb/jv-valprint.c')
-rw-r--r--gdb/jv-valprint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c
index 6bfae7e3274..797c16a9123 100644
--- a/gdb/jv-valprint.c
+++ b/gdb/jv-valprint.c
@@ -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),