aboutsummaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.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/xtensa-tdep.c
parent333859402c7968dc718dae73ca0fbddbe096fc51 (diff)
downloadgdb-2d39ccd3d1773b26ed8178bcd77375175c48ee62.zip
gdb-2d39ccd3d1773b26ed8178bcd77375175c48ee62.tar.gz
gdb-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/xtensa-tdep.c')
-rw-r--r--gdb/xtensa-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index 092ae08..a47a298 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -312,8 +312,9 @@ xtensa_register_type (struct gdbarch *gdbarch, int regnum)
tp->next = tdep->type_entries;
tdep->type_entries = tp;
tp->size = size;
+ type_allocator alloc (gdbarch);
tp->virtual_type
- = arch_integer_type (gdbarch, size * 8, 1, name.c_str ());
+ = init_integer_type (alloc, size * 8, 1, name.c_str ());
}
reg->ctype = tp->virtual_type;