aboutsummaryrefslogtreecommitdiff
path: root/gdb/avr-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 12:25:27 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:38 -0600
commit9c794d2d46f0605ee033107418aac2ca20f659f8 (patch)
treeab2545236e101a41e404ff7d6ceaeee6d5aeb97a /gdb/avr-tdep.c
parent0776344a3377b1ac01889b03e21f6ad20c267fa6 (diff)
downloadgdb-9c794d2d46f0605ee033107418aac2ca20f659f8.zip
gdb-9c794d2d46f0605ee033107418aac2ca20f659f8.tar.gz
gdb-9c794d2d46f0605ee033107418aac2ca20f659f8.tar.bz2
Unify arch_pointer_type and init_pointer_type
This unifies arch_pointer_type and init_pointer_type by using a type allocator. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/avr-tdep.c')
-rw-r--r--gdb/avr-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c
index f9f498b..ce2262c 100644
--- a/gdb/avr-tdep.c
+++ b/gdb/avr-tdep.c
@@ -1476,7 +1476,7 @@ avr_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
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, 4 * TARGET_CHAR_BIT, NULL,
+ tdep->pc_type = init_pointer_type (alloc, 4 * TARGET_CHAR_BIT, NULL,
tdep->func_void_type);
set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);