mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
* 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.
This commit is contained in:
@@ -108,11 +108,6 @@ struct type *builtin_type_arm_ext;
|
||||
struct type *builtin_type_ia64_spill;
|
||||
struct type *builtin_type_ia64_quad;
|
||||
|
||||
/* Platform-neutral character types. */
|
||||
struct type *builtin_type_true_char;
|
||||
struct type *builtin_type_true_unsigned_char;
|
||||
|
||||
|
||||
int opaque_type_resolution = 1;
|
||||
static void
|
||||
show_opaque_type_resolution (struct ui_file *file, int from_tty,
|
||||
@@ -3191,6 +3186,16 @@ gdbtypes_post_init (struct gdbarch *gdbarch)
|
||||
0,
|
||||
"_Decimal128", (struct objfile *) NULL);
|
||||
|
||||
/* "True" character types. */
|
||||
builtin_type->builtin_true_char =
|
||||
init_type (TYPE_CODE_CHAR, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
|
||||
0,
|
||||
"true character", (struct objfile *) NULL);
|
||||
builtin_type->builtin_true_unsigned_char =
|
||||
init_type (TYPE_CODE_CHAR, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
|
||||
TYPE_FLAG_UNSIGNED,
|
||||
"true character", (struct objfile *) NULL);
|
||||
|
||||
/* Default data/code pointer types. */
|
||||
builtin_type->builtin_data_ptr =
|
||||
make_pointer_type (builtin_type->builtin_void, NULL);
|
||||
@@ -3430,15 +3435,6 @@ _initialize_gdbtypes (void)
|
||||
builtin_type_ia64_quad =
|
||||
build_flt (-1, "builtin_type_ia64_quad", floatformats_ia64_quad);
|
||||
|
||||
builtin_type_true_char =
|
||||
init_type (TYPE_CODE_CHAR, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
|
||||
0,
|
||||
"true character", (struct objfile *) NULL);
|
||||
builtin_type_true_unsigned_char =
|
||||
init_type (TYPE_CODE_CHAR, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
|
||||
TYPE_FLAG_UNSIGNED,
|
||||
"true character", (struct objfile *) NULL);
|
||||
|
||||
add_setshow_zinteger_cmd ("overload", no_class, &overload_debug, _("\
|
||||
Set debugging of C++ overloading."), _("\
|
||||
Show debugging of C++ overloading."), _("\
|
||||
|
||||
Reference in New Issue
Block a user