aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 10:57:56 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:37 -0600
commitf50b437c3da71d91dfb04db8e06b2cdb69d16294 (patch)
treeee0a8bab9c7fb41f789f1ef934776d98586f88fc /gdb/m2-lang.c
parent2d39ccd3d1773b26ed8178bcd77375175c48ee62 (diff)
downloadgdb-f50b437c3da71d91dfb04db8e06b2cdb69d16294.zip
gdb-f50b437c3da71d91dfb04db8e06b2cdb69d16294.tar.gz
gdb-f50b437c3da71d91dfb04db8e06b2cdb69d16294.tar.bz2
Unify arch_character_type and init_character_type
This unifies arch_character_type and init_character_type by using a type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/m2-lang.c')
-rw-r--r--gdb/m2-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 218867d..d2fa1a4 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -292,7 +292,7 @@ build_m2_types (struct gdbarch *gdbarch)
= arch_float_type (gdbarch, gdbarch_float_bit (gdbarch), "REAL",
gdbarch_float_format (gdbarch));
builtin_m2_type->builtin_char
- = arch_character_type (gdbarch, TARGET_CHAR_BIT, 1, "CHAR");
+ = init_character_type (alloc, TARGET_CHAR_BIT, 1, "CHAR");
builtin_m2_type->builtin_bool
= arch_boolean_type (gdbarch, gdbarch_int_bit (gdbarch), 1, "BOOLEAN");