diff options
Diffstat (limited to 'gdb/sparc-obsd-tdep.c')
-rw-r--r-- | gdb/sparc-obsd-tdep.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/sparc-obsd-tdep.c b/gdb/sparc-obsd-tdep.c index 3182a77..ff6e915 100644 --- a/gdb/sparc-obsd-tdep.c +++ b/gdb/sparc-obsd-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for OpenBSD/sparc. - Copyright (C) 2004-2024 Free Software Foundation, Inc. + Copyright (C) 2004-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -134,20 +134,20 @@ sparc32obsd_sigtramp_frame_sniffer (const struct frame_unwind *self, return 0; } -static const struct frame_unwind sparc32obsd_sigtramp_frame_unwind = -{ +static const struct frame_unwind_legacy sparc32obsd_sigtramp_frame_unwind ( "sparc32 openbsd sigtramp", SIGTRAMP_FRAME, + FRAME_UNWIND_ARCH, default_frame_unwind_stop_reason, sparc32obsd_sigtramp_frame_this_id, sparc32obsd_sigtramp_frame_prev_register, NULL, sparc32obsd_sigtramp_frame_sniffer -}; +); -/* Offset wthin the thread structure where we can find %fp and %i7. */ +/* Offset within the thread structure where we can find %fp and %i7. */ #define SPARC32OBSD_UTHREAD_FP_OFFSET 128 #define SPARC32OBSD_UTHREAD_PC_OFFSET 132 @@ -254,9 +254,7 @@ sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) bsd_uthread_set_collect_uthread (gdbarch, sparc32obsd_collect_uthread); } -void _initialize_sparc32obsd_tdep (); -void -_initialize_sparc32obsd_tdep () +INIT_GDB_FILE (sparc32obsd_tdep) { gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_OPENBSD, sparc32obsd_init_abi); |