diff options
author | David Taylor <taylor@redhat.com> | 1998-12-28 23:06:13 +0000 |
---|---|---|
committer | David Taylor <taylor@redhat.com> | 1998-12-28 23:06:13 +0000 |
commit | 4ef1f4677390c085543fe80eec41b0fe5d58ddca (patch) | |
tree | d0e8320e4871a81733155e8ce653507dd3d64825 /gdb/jv-valprint.c | |
parent | d6fdf61c78fbce1dad62cd1022e606fdaaad4202 (diff) | |
download | gdb-4ef1f4677390c085543fe80eec41b0fe5d58ddca.zip gdb-4ef1f4677390c085543fe80eec41b0fe5d58ddca.tar.gz gdb-4ef1f4677390c085543fe80eec41b0fe5d58ddca.tar.bz2 |
hp merge changes -- too numerous to mention here; see ChangeLog and
ChangeLog-gdbtk for details.
Diffstat (limited to 'gdb/jv-valprint.c')
-rw-r--r-- | gdb/jv-valprint.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c index 0f3d639b..f8cb90b 100644 --- a/gdb/jv-valprint.c +++ b/gdb/jv-valprint.c @@ -136,8 +136,8 @@ java_value_print (val, stream, format, pretty) fprintf_filtered (stream, "%d: ", i); else fprintf_filtered (stream, "%d..%d: ", i, i + reps - 1); - val_print (VALUE_TYPE (v), VALUE_CONTENTS (v), 0, - stream, format, 2, 1, pretty); + val_print (VALUE_TYPE (v), VALUE_CONTENTS (v), 0, 0, + stream, format, 2, 1, pretty); things_printed++; i += reps; } @@ -184,7 +184,7 @@ java_value_print (val, stream, format, pretty) return 0; } - return (val_print (type, VALUE_CONTENTS (val), address, + return (val_print (type, VALUE_CONTENTS (val), 0, address, stream, format, 1, 0, pretty)); } @@ -343,7 +343,8 @@ java_print_value_fields (type, valaddr, address, stream, v = value_from_longest (TYPE_FIELD_TYPE (type, i), unpack_field_as_long (type, valaddr, i)); - val_print (TYPE_FIELD_TYPE(type, i), VALUE_CONTENTS (v), 0, + val_print (TYPE_FIELD_TYPE(type, i), VALUE_CONTENTS (v), + 0, 0, stream, format, 0, recurse + 1, pretty); } } @@ -364,7 +365,7 @@ java_print_value_fields (type, valaddr, address, stream, if (TYPE_CODE (t) == TYPE_CODE_STRUCT) v = value_addr (v); val_print (VALUE_TYPE (v), - VALUE_CONTENTS (v), VALUE_ADDRESS (v), + VALUE_CONTENTS (v), 0, VALUE_ADDRESS (v), stream, format, 0, recurse+1, pretty); } } @@ -372,6 +373,7 @@ java_print_value_fields (type, valaddr, address, stream, { val_print (TYPE_FIELD_TYPE (type, i), valaddr + TYPE_FIELD_BITPOS (type, i) / 8, + 0, address + TYPE_FIELD_BITPOS (type, i) / 8, stream, format, 0, recurse + 1, pretty); } @@ -402,10 +404,11 @@ java_print_value_fields (type, valaddr, address, stream, The PRETTY parameter controls prettyprinting. */ int -java_val_print (type, valaddr, address, stream, format, deref_ref, recurse, - pretty) +java_val_print (type, valaddr, embedded_offset, address, stream, format, + deref_ref, recurse, pretty) struct type *type; char *valaddr; + int embedded_offset; CORE_ADDR address; GDB_FILE *stream; int format; @@ -476,7 +479,7 @@ java_val_print (type, valaddr, address, stream, format, deref_ref, recurse, recurse, pretty); break; default: - return c_val_print (type, valaddr, address, stream, format, + return c_val_print (type, valaddr, 0, address, stream, format, deref_ref, recurse, pretty); } return 0; |