diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-13 10:57:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-18 11:12:37 -0600 |
commit | f50b437c3da71d91dfb04db8e06b2cdb69d16294 (patch) | |
tree | ee0a8bab9c7fb41f789f1ef934776d98586f88fc /gdb/go-lang.c | |
parent | 2d39ccd3d1773b26ed8178bcd77375175c48ee62 (diff) | |
download | gdb-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/go-lang.c')
-rw-r--r-- | gdb/go-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c index 8cdd6b1..6d0d435 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -486,7 +486,7 @@ build_go_types (struct gdbarch *gdbarch) type_allocator alloc (gdbarch); builtin_go_type->builtin_void = builtin_type (gdbarch)->builtin_void; builtin_go_type->builtin_char - = arch_character_type (gdbarch, 8, 1, "char"); + = init_character_type (alloc, 8, 1, "char"); builtin_go_type->builtin_bool = arch_boolean_type (gdbarch, 8, 0, "bool"); builtin_go_type->builtin_int |