aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.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/stabsread.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/stabsread.c')
-rw-r--r--gdb/stabsread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 6270f48..4c7b88f 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -2158,7 +2158,7 @@ rs6000_builtin_type (int typenum, struct objfile *objfile)
rettype = alloc.new_type (TYPE_CODE_ERROR, 0, "stringptr");
break;
case 20:
- rettype = init_character_type (objfile, 8, 1, "character");
+ rettype = init_character_type (alloc, 8, 1, "character");
break;
case 21:
rettype = init_boolean_type (objfile, 8, 1, "logical*1");
@@ -2192,7 +2192,7 @@ rs6000_builtin_type (int typenum, struct objfile *objfile)
rettype = init_integer_type (alloc, 32, 0, "integer*4");
break;
case 30:
- rettype = init_character_type (objfile, 16, 0, "wchar");
+ rettype = init_character_type (alloc, 16, 0, "wchar");
break;
case 31:
rettype = init_integer_type (alloc, 64, 0, "long long");