diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:21:21 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:21:21 +0000 |
commit | b769d911fd1a0ffdde4305b1cb7a9a8265549896 (patch) | |
tree | ae1ffec015d1690d1dffef0777028cf1fa4d611b /gdb/printcmd.c | |
parent | fde6c81990c82b00f737cec2d781458de2ac84e1 (diff) | |
download | gdb-b769d911fd1a0ffdde4305b1cb7a9a8265549896.zip gdb-b769d911fd1a0ffdde4305b1cb7a9a8265549896.tar.gz gdb-b769d911fd1a0ffdde4305b1cb7a9a8265549896.tar.bz2 |
* gdbtypes.h (struct builtin_type): Remove builtin_true_char
and builtin_true_unsigned_char.
(builtin_type_true_char): Remove macro, add extern declaration.
(builtin_type_true_unsigned_char): Add extern declaration.
* gdbtypes.c (builtin_type_true_char): New global variable.
(builtin_type_true_unsigned_char): Likewise.
(_initialize_gdbtypes): Initialize them.
(gdbtypes_post_init): Do not initialize builtin_true_char
and builtin_true_unsigned_char members of struct builtin_type.
* printcmd.c (print_scalar_formatted): Do not use builtin_type;
use builtin_type_true_unsigned_char instead.
* ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
instead of builtin_type_char for internal string.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index f09dc91..1310994 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -425,13 +425,9 @@ print_scalar_formatted (const void *valaddr, struct type *type, case 'c': if (TYPE_UNSIGNED (type)) - { - struct type *utype; - - utype = builtin_type (current_gdbarch)->builtin_true_unsigned_char; - value_print (value_from_longest (utype, val_long), - stream, 0, Val_pretty_default); - } + value_print (value_from_longest (builtin_type_true_unsigned_char, + val_long), + stream, 0, Val_pretty_default); else value_print (value_from_longest (builtin_type_true_char, val_long), stream, 0, Val_pretty_default); |