diff options
Diffstat (limited to 'gdb/mips-sde-tdep.c')
-rw-r--r-- | gdb/mips-sde-tdep.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/mips-sde-tdep.c b/gdb/mips-sde-tdep.c index 90988cd..5278afb 100644 --- a/gdb/mips-sde-tdep.c +++ b/gdb/mips-sde-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for SDE on MIPS processors. - Copyright (C) 2014-2024 Free Software Foundation, Inc. + Copyright (C) 2014-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -160,16 +160,16 @@ mips_sde_frame_sniffer (const struct frame_unwind *self, /* Data structure for the SDE frame unwinder. */ -static const struct frame_unwind mips_sde_frame_unwind = -{ +static const struct frame_unwind_legacy mips_sde_frame_unwind ( "mips sde sigtramp", SIGTRAMP_FRAME, + FRAME_UNWIND_ARCH, default_frame_unwind_stop_reason, mips_sde_frame_this_id, mips_sde_frame_prev_register, NULL, mips_sde_frame_sniffer -}; +); /* Implement the this_base, this_locals, and this_args hooks for the normal unwinder. */ @@ -254,9 +254,7 @@ mips_sde_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) frame_base_append_sniffer (gdbarch, mips_sde_frame_base_sniffer); } -void _initialize_mips_sde_tdep (); -void -_initialize_mips_sde_tdep () +INIT_GDB_FILE (mips_sde_tdep) { gdbarch_register_osabi_sniffer (bfd_arch_mips, bfd_target_elf_flavour, |