diff options
author | Per Bothner <per@bothner.com> | 1997-08-05 21:59:56 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1997-08-05 21:59:56 +0000 |
commit | d2e131a198a957499a8d318f8962f4fe75a2b325 (patch) | |
tree | 7932e33f4dd678fe27e67fd0ac87e257524e6cb9 /gdb/jv-valprint.c | |
parent | f7f37388dc1d7910711f89b1c6b4f3808533ff2d (diff) | |
download | gdb-d2e131a198a957499a8d318f8962f4fe75a2b325.zip gdb-d2e131a198a957499a8d318f8962f4fe75a2b325.tar.gz gdb-d2e131a198a957499a8d318f8962f4fe75a2b325.tar.bz2 |
* jv-lang.c (get_java_utf8_name): Re-write so it works with
implied (missing) data field, as defined by cc1java.
(java_link_class_type): Type length and field offset (in interior)
now includes object header. Get static fields working.
* jv-lang.h (JAVA_OBJECT_SIZE): Update for change in Kaffe.
* jv-typeprint.c (java_type_print_derivation_info,
java_type_print_base): New functions, for better Java output.
* jv-valprint.c: Start to support Java-specific output.
Diffstat (limited to 'gdb/jv-valprint.c')
-rw-r--r-- | gdb/jv-valprint.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c index af60b17..06ea084 100644 --- a/gdb/jv-valprint.c +++ b/gdb/jv-valprint.c @@ -59,6 +59,7 @@ java_val_print (type, valaddr, address, stream, format, deref_ref, recurse, int recurse; enum val_prettyprint pretty; { + CHECK_TYPEDEF (type); if (is_object_type (type)) { CORE_ADDR obj_addr = unpack_pointer (type, valaddr); @@ -70,6 +71,10 @@ java_val_print (type, valaddr, address, stream, format, deref_ref, recurse, type = lookup_pointer_type (type); } } - return c_val_print (type, valaddr, address, stream, format, - deref_ref, recurse, pretty); + switch (TYPE_CODE (type)) + { + default: + return c_val_print (type, valaddr, address, stream, format, + deref_ref, recurse, pretty); + } } |