diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 12:44:34 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 12:44:34 +0000 |
commit | 69feb676087cb0883eb5feb38558dc3252059312 (patch) | |
tree | cd486c529a02aa9fc54ff1f243e3e311bf4c4a4b /gdb/ada-valprint.c | |
parent | 48319d1fc01f55ca319e760b82f4527f8ab62476 (diff) | |
download | gdb-69feb676087cb0883eb5feb38558dc3252059312.zip gdb-69feb676087cb0883eb5feb38558dc3252059312.tar.gz gdb-69feb676087cb0883eb5feb38558dc3252059312.tar.bz2 |
* gdbtypes.h (builtin_type_true_char): Remove.
(builtin_type_true_unsigned_char): Likewise.
(struct builtin_type): Add builtin_true_char and
builtin_true_unsigned_char members.
* gdbtypes.c (builtin_type_true_char): Remove.
(builtin_type_true_unsigned_char): Likewise.
(_initialize_gdbtypes): Do not initialize them.
(gdbtypes_post_init): Initialize builtin_true_char and
builtin_true_unsigned_char members of builtin_type.
* printcmd.c (print_scalar_formatted): Use builtin_type
members instead of builtin_type_true_char and
builtin_type_true_unsigned_char.
* ada-valprint.c (ada_val_print_1): Likewise.
Diffstat (limited to 'gdb/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index b33199b..2aa0d73 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -746,9 +746,10 @@ ada_val_print_1 (struct type *type, const gdb_byte *valaddr0, struct value *func = ada_vax_float_print_function (type); if (func != 0) { + struct gdbarch *gdbarch = current_gdbarch; CORE_ADDR addr; addr = value_as_address (call_function_by_hand (func, 1, &val)); - val_print_string (builtin_type_true_char, + val_print_string (builtin_type (gdbarch)->builtin_true_char, addr, -1, stream, options); return 0; } |