diff options
author | Pedro Alves <palves@redhat.com> | 2011-01-25 17:59:00 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-01-25 17:59:00 +0000 |
commit | ab2188aa2a7958d3954f98229002036867278636 (patch) | |
tree | decbfba60b0a7e0f21b6b3f5362675a349aad13b /gdb/jv-valprint.c | |
parent | 66d61a4cabfc231963c2d901d345198498d9aa21 (diff) | |
download | gdb-ab2188aa2a7958d3954f98229002036867278636.zip gdb-ab2188aa2a7958d3954f98229002036867278636.tar.gz gdb-ab2188aa2a7958d3954f98229002036867278636.tar.bz2 |
* printcmd.c (print_formatted): Use val_print_scalar_formatted
instead of print_scalar_formatted.
(print_scalar_formatted): Don't handle 's' format strings here,
and add an assertion that we never see such format here.
* valprint.h (val_print_scalar_formatted): Declare.
* valprint.c (val_print_scalar_formatted): New.
* c-valprint.c (c_val_print): Use val_print_scalar_formatted
instead of print_scalar_formatted.
* jv-valprint.c (java_val_print): Ditto.
* p-valprint.c (pascal_val_print): Ditto.
* ada-valprint.c (ada_val_print_1): Ditto.
* f-valprint.c (f_val_print): Ditto.
* infcmd.c (registers_info): Ditto.
* m2-valprint.c (m2_val_print): Ditto.
Diffstat (limited to 'gdb/jv-valprint.c')
-rw-r--r-- | gdb/jv-valprint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c index 8c29f37..b282da8 100644 --- a/gdb/jv-valprint.c +++ b/gdb/jv-valprint.c @@ -499,8 +499,8 @@ java_val_print (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_PTR: if (options->format && options->format != 's') { - print_scalar_formatted (valaddr + embedded_offset, - type, options, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + val, options, 0, stream); break; } #if 0 @@ -552,8 +552,8 @@ java_val_print (struct type *type, const gdb_byte *valaddr, opts.format = (options->format ? options->format : options->output_format); - print_scalar_formatted (valaddr + embedded_offset, - type, &opts, 0, stream); + val_print_scalar_formatted (type, valaddr, embedded_offset, + val, &opts, 0, stream); } else if (TYPE_CODE (type) == TYPE_CODE_CHAR || (TYPE_CODE (type) == TYPE_CODE_INT |