aboutsummaryrefslogtreecommitdiff
path: root/gdb/netbsd-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/netbsd-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/netbsd-tdep.c')
-rw-r--r--gdb/netbsd-tdep.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/gdb/netbsd-tdep.c b/gdb/netbsd-tdep.c
index 05f8d27..ed60200 100644
--- a/gdb/netbsd-tdep.c
+++ b/gdb/netbsd-tdep.c
@@ -414,24 +414,28 @@ nbsd_get_siginfo_type (struct gdbarch *gdbarch)
size_t char_bits = gdbarch_addressable_memory_unit_size (gdbarch) * 8;
/* pid_t */
- type *pid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
- int32_type->length () * char_bits, "pid_t");
+ type_allocator alloc (gdbarch);
+ type *pid_type = alloc.new_type (TYPE_CODE_TYPEDEF,
+ int32_type->length () * char_bits,
+ "pid_t");
pid_type->set_target_type (int32_type);
/* uid_t */
- type *uid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
- uint32_type->length () * char_bits, "uid_t");
+ type *uid_type = alloc.new_type (TYPE_CODE_TYPEDEF,
+ uint32_type->length () * char_bits,
+ "uid_t");
uid_type->set_target_type (uint32_type);
/* clock_t */
- type *clock_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
- int_type->length () * char_bits, "clock_t");
+ type *clock_type = alloc.new_type (TYPE_CODE_TYPEDEF,
+ int_type->length () * char_bits,
+ "clock_t");
clock_type->set_target_type (int_type);
/* lwpid_t */
- type *lwpid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
- int32_type->length () * char_bits,
- "lwpid_t");
+ type *lwpid_type = alloc.new_type (TYPE_CODE_TYPEDEF,
+ int32_type->length () * char_bits,
+ "lwpid_t");
lwpid_type->set_target_type (int32_type);
/* union sigval */