aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-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/rust-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/rust-lang.c')
-rw-r--r--gdb/rust-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index 608799c..be0a710 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -1597,7 +1597,7 @@ rust_language::language_arch_info (struct gdbarch *gdbarch,
type_allocator alloc (gdbarch);
struct type *bool_type
= add (arch_boolean_type (gdbarch, 8, 1, "bool"));
- add (arch_character_type (gdbarch, 32, 1, "char"));
+ add (init_character_type (alloc, 32, 1, "char"));
add (init_integer_type (alloc, 8, 0, "i8"));
struct type *u8_type
= add (init_integer_type (alloc, 8, 1, "u8"));