diff options
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 0dbb905..6bd4fd3 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for Renesas Super-H, for GDB. - Copyright (C) 1993-2024 Free Software Foundation, Inc. + Copyright (C) 1993-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -1057,7 +1057,7 @@ sh_push_dummy_call_fpu (struct gdbarch *gdbarch, /* Now load as many as possible of the first arguments into registers, and push the rest onto the stack. There are 16 bytes - in four registers available. Loop thru args from first to last. */ + in four registers available. Loop through args from first to last. */ for (argnum = 0; argnum < nargs; argnum++) { type = args[argnum]->type (); @@ -1195,7 +1195,7 @@ sh_push_dummy_call_nofpu (struct gdbarch *gdbarch, /* Now load as many as possible of the first arguments into registers, and push the rest onto the stack. There are 16 bytes - in four registers available. Loop thru args from first to last. */ + in four registers available. Loop through args from first to last. */ for (argnum = 0; argnum < nargs; argnum++) { type = args[argnum]->type (); @@ -1950,15 +1950,16 @@ sh_frame_this_id (const frame_info_ptr &this_frame, void **this_cache, *this_id = frame_id_build (cache->saved_sp, cache->pc); } -static const struct frame_unwind sh_frame_unwind = { +static const struct frame_unwind_legacy sh_frame_unwind ( "sh prologue", NORMAL_FRAME, + FRAME_UNWIND_ARCH, default_frame_unwind_stop_reason, sh_frame_this_id, sh_frame_prev_register, NULL, default_frame_sniffer -}; +); static CORE_ADDR sh_frame_base_address (const frame_info_ptr &this_frame, void **this_cache) @@ -2016,16 +2017,16 @@ sh_stub_unwind_sniffer (const struct frame_unwind *self, return 0; } -static const struct frame_unwind sh_stub_unwind = -{ +static const struct frame_unwind_legacy sh_stub_unwind ( "sh stub", NORMAL_FRAME, + FRAME_UNWIND_ARCH, default_frame_unwind_stop_reason, sh_stub_this_id, sh_frame_prev_register, NULL, sh_stub_unwind_sniffer -}; +); /* Implement the stack_frame_destroyed_p gdbarch method. @@ -2171,7 +2172,7 @@ sh_corefile_collect_regset (const struct regset *regset, } /* The following two regsets have the same contents, so it is tempting to - unify them, but they are distiguished by their address, so don't. */ + unify them, but they are distinguished by their address, so don't. */ const struct regset sh_corefile_gregset = { @@ -2393,9 +2394,7 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -void _initialize_sh_tdep (); -void -_initialize_sh_tdep () +INIT_GDB_FILE (sh_tdep) { gdbarch_register (bfd_arch_sh, sh_gdbarch_init, NULL); |