diff options
Diffstat (limited to 'gdb/iq2000-tdep.c')
-rw-r--r-- | gdb/iq2000-tdep.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c index 5776c66..58a4dfb 100644 --- a/gdb/iq2000-tdep.c +++ b/gdb/iq2000-tdep.c @@ -1,7 +1,7 @@ /* Target-dependent code for the IQ2000 architecture, for GDB, the GNU Debugger. - Copyright (C) 2000-2024 Free Software Foundation, Inc. + Copyright (C) 2000-2025 Free Software Foundation, Inc. Contributed by Red Hat. @@ -348,7 +348,7 @@ iq2000_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) /* Found a line number, use it as end of prologue. */ return sal.end; - /* No useable line symbol. Use prologue parsing method. */ + /* No usable line symbol. Use prologue parsing method. */ iq2000_init_frame_cache (&cache); return iq2000_scan_prologue (gdbarch, func_addr, func_end, NULL, &cache); } @@ -424,15 +424,16 @@ iq2000_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 iq2000_frame_unwind = { +static const struct frame_unwind_legacy iq2000_frame_unwind ( "iq2000 prologue", NORMAL_FRAME, + FRAME_UNWIND_ARCH, default_frame_unwind_stop_reason, iq2000_frame_this_id, iq2000_frame_prev_register, NULL, default_frame_sniffer -}; +); static CORE_ADDR iq2000_frame_base_address (const frame_info_ptr &this_frame, void **this_cache) @@ -839,9 +840,7 @@ iq2000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) Initializer function for the iq2000 module. Called by gdb at start-up. */ -void _initialize_iq2000_tdep (); -void -_initialize_iq2000_tdep () +INIT_GDB_FILE (iq2000_tdep) { gdbarch_register (bfd_arch_iq2000, iq2000_gdbarch_init); } |