[binutils-gdb] gdb/fbsd-tdep: use builtin integer types
Simon Marchi via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=54fce54caf88fcb18425989ff0c72340eb8a8e72 commit 54fce54caf88fcb18425989ff0c72340eb8a8e72 Author: Simon Marchi <[email protected]> Date: Tue Mar 10 13:34:46 2026 -0400 gdb/fbsd-tdep: use builtin integer types Same as the previous patch, but for FreeBSD. Change-Id: If5a783b0419f74bec4edb99683ef06184775fc52 Approved-By: Tom Tromey <[email protected]> Diff: --- gdb/fbsd-tdep.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c index 458e9154272..e3c78aaff5d 100644 --- a/gdb/fbsd-tdep.c +++ b/gdb/fbsd-tdep.c @@ -1582,12 +1582,11 @@ fbsd_get_siginfo_type (struct gdbarch *gdbarch) return fbsd_gdbarch_data->siginfo_type; type_allocator alloc (gdbarch); - int_type = init_integer_type (alloc, gdbarch_int_bit (gdbarch), - 0, "int"); - int32_type = init_integer_type (alloc, 32, 0, "int32_t"); - uint32_type = init_integer_type (alloc, 32, 1, "uint32_t"); - long_type = init_integer_type (alloc, gdbarch_long_bit (gdbarch), - 0, "long"); + const struct builtin_type *builtin_types = builtin_type (gdbarch); + int_type = builtin_types->builtin_int; + int32_type = builtin_types->builtin_int32; + uint32_type = builtin_types->builtin_uint32; + long_type = builtin_types->builtin_long; void_ptr_type = lookup_pointer_type (builtin_type (gdbarch)->builtin_void); /* union sigval */