diff options
author | Pedro Alves <pedro@codesourcery.com> | 2011-01-25 17:58:58 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2011-01-25 17:58:58 +0000 |
commit | 7c29bb2e4cedfa8fcd791dc4b30011eb089b828c (patch) | |
tree | e678380e9f843526bf233273cd9faa40547e49e8 /gdb/ada-valprint.c | |
parent | d17b6ddf92ac5c99ff72803ef69d485a2e1987be (diff) | |
download | gdb-7c29bb2e4cedfa8fcd791dc4b30011eb089b828c.tar.gz |
* 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/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index d0810c7d79d..bd297c6c1f0 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -788,8 +788,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr, struct value_print_options opts = *options; opts.format = format; - print_scalar_formatted (valaddr + offset_aligned, - type, &opts, 0, stream); + val_print_scalar_formatted (type, valaddr, offset_aligned, + original_value, &opts, 0, stream); } else if (ada_is_system_address_type (type)) { @@ -827,8 +827,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_ENUM: if (options->format) { - print_scalar_formatted (valaddr + offset_aligned, - type, options, 0, stream); + val_print_scalar_formatted (type, valaddr, offset_aligned, + original_value, options, 0, stream); break; } len = TYPE_NFIELDS (type); @@ -858,8 +858,8 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr, case TYPE_CODE_FLAGS: if (options->format) - print_scalar_formatted (valaddr + offset_aligned, - type, options, 0, stream); + val_print_scalar_formatted (type, valaddr, offset_aligned, + original_value, options, 0, stream); else val_print_type_code_flags (type, valaddr + offset_aligned, stream); break; |