aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-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/fbsd-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/fbsd-tdep.c')
-rw-r--r--gdb/fbsd-tdep.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c
index 3a7cb9b..236a9f4 100644
--- a/gdb/fbsd-tdep.c
+++ b/gdb/fbsd-tdep.c
@@ -1609,15 +1609,17 @@ fbsd_get_siginfo_type (struct gdbarch *gdbarch)
append_composite_type_field (sigval_type, "sival_ptr", void_ptr_type);
/* __pid_t */
- pid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
- int32_type->length () * TARGET_CHAR_BIT, "__pid_t");
+ type_allocator alloc (gdbarch);
+ pid_type = alloc.new_type (TYPE_CODE_TYPEDEF,
+ int32_type->length () * TARGET_CHAR_BIT,
+ "__pid_t");
pid_type->set_target_type (int32_type);
pid_type->set_target_is_stub (true);
/* __uid_t */
- uid_type = arch_type (gdbarch, TYPE_CODE_TYPEDEF,
- uint32_type->length () * TARGET_CHAR_BIT,
- "__uid_t");
+ uid_type = alloc.new_type (TYPE_CODE_TYPEDEF,
+ uint32_type->length () * TARGET_CHAR_BIT,
+ "__uid_t");
uid_type->set_target_type (uint32_type);
pid_type->set_target_is_stub (true);