aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 10:31:06 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:37 -0600
commit2d39ccd3d1773b26ed8178bcd77375175c48ee62 (patch)
treee4634ee4c847ad5e71d092188c6f38ab21ae2444 /gdb/mdebugread.c
parent333859402c7968dc718dae73ca0fbddbe096fc51 (diff)
downloadbinutils-2d39ccd3d1773b26ed8178bcd77375175c48ee62.zip
binutils-2d39ccd3d1773b26ed8178bcd77375175c48ee62.tar.gz
binutils-2d39ccd3d1773b26ed8178bcd77375175c48ee62.tar.bz2
Unify arch_integer_type and init_integer_type
This unifies arch_integer_type and init_integer_type by using a type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 209040b..14f7d30 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -1400,36 +1400,36 @@ basic_type (int bt, struct objfile *objfile)
break;
case btChar:
- tp = init_integer_type (objfile, 8, 0, "char");
+ tp = init_integer_type (alloc, 8, 0, "char");
tp->set_has_no_signedness (true);
break;
case btUChar:
- tp = init_integer_type (objfile, 8, 1, "unsigned char");
+ tp = init_integer_type (alloc, 8, 1, "unsigned char");
break;
case btShort:
- tp = init_integer_type (objfile, 16, 0, "short");
+ tp = init_integer_type (alloc, 16, 0, "short");
break;
case btUShort:
- tp = init_integer_type (objfile, 16, 1, "unsigned short");
+ tp = init_integer_type (alloc, 16, 1, "unsigned short");
break;
case btInt:
- tp = init_integer_type (objfile, 32, 0, "int");
+ tp = init_integer_type (alloc, 32, 0, "int");
break;
case btUInt:
- tp = init_integer_type (objfile, 32, 1, "unsigned int");
+ tp = init_integer_type (alloc, 32, 1, "unsigned int");
break;
case btLong:
- tp = init_integer_type (objfile, 32, 0, "long");
+ tp = init_integer_type (alloc, 32, 0, "long");
break;
case btULong:
- tp = init_integer_type (objfile, 32, 1, "unsigned long");
+ tp = init_integer_type (alloc, 32, 1, "unsigned long");
break;
case btFloat:
@@ -1454,7 +1454,7 @@ basic_type (int bt, struct objfile *objfile)
/* We use TYPE_CODE_INT to print these as integers. Does this do any
good? Would we be better off with TYPE_CODE_ERROR? Should
TYPE_CODE_ERROR print things in hex if it knows the size? */
- tp = init_integer_type (objfile, gdbarch_int_bit (gdbarch), 0,
+ tp = init_integer_type (alloc, gdbarch_int_bit (gdbarch), 0,
"fixed decimal");
break;
@@ -1474,19 +1474,19 @@ basic_type (int bt, struct objfile *objfile)
break;
case btLong64:
- tp = init_integer_type (objfile, 64, 0, "long");
+ tp = init_integer_type (alloc, 64, 0, "long");
break;
case btULong64:
- tp = init_integer_type (objfile, 64, 1, "unsigned long");
+ tp = init_integer_type (alloc, 64, 1, "unsigned long");
break;
case btLongLong64:
- tp = init_integer_type (objfile, 64, 0, "long long");
+ tp = init_integer_type (alloc, 64, 0, "long long");
break;
case btULongLong64:
- tp = init_integer_type (objfile, 64, 1, "unsigned long long");
+ tp = init_integer_type (alloc, 64, 1, "unsigned long long");
break;
case btAdr64:
@@ -1495,11 +1495,11 @@ basic_type (int bt, struct objfile *objfile)
break;
case btInt64:
- tp = init_integer_type (objfile, 64, 0, "int");
+ tp = init_integer_type (alloc, 64, 0, "int");
break;
case btUInt64:
- tp = init_integer_type (objfile, 64, 1, "unsigned int");
+ tp = init_integer_type (alloc, 64, 1, "unsigned int");
break;
default: