aboutsummaryrefslogtreecommitdiff
path: root/gdb/z80-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 09:53:35 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:37 -0600
commitcc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5 (patch)
tree25e65ef71b881a1355bda4ea239258d578e09efd /gdb/z80-tdep.c
parent95751990e40d88986205ba3c0719b8afd3da0e7e (diff)
downloadgdb-cc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5.zip
gdb-cc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5.tar.gz
gdb-cc495054ad5cd22cfc3b3de5fc962af7f6b4e8d5.tar.bz2
Remove arch_type
This removes arch_type, replacing all uses with the new type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/z80-tdep.c')
-rw-r--r--gdb/z80-tdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/z80-tdep.c b/gdb/z80-tdep.c
index fb40770..78b3827 100644
--- a/gdb/z80-tdep.c
+++ b/gdb/z80-tdep.c
@@ -1139,8 +1139,9 @@ z80_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Create a type for PC. We can't use builtin types here, as they may not
be defined. */
- tdep->void_type = arch_type (gdbarch, TYPE_CODE_VOID, TARGET_CHAR_BIT,
- "void");
+ type_allocator alloc (gdbarch);
+ tdep->void_type = alloc.new_type (TYPE_CODE_VOID, TARGET_CHAR_BIT,
+ "void");
tdep->func_void_type = make_function_type (tdep->void_type, NULL);
tdep->pc_type = arch_pointer_type (gdbarch,
tdep->addr_length * TARGET_CHAR_BIT,