From 7f39821656c5150e7b26a8d967d698f20493ac2e Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Mon, 27 Oct 2003 06:26:12 +0000 Subject: [PATCH] * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size): Delete. (frv_register_type): Rename from frv_register_virtual_type. Add ``struct gdbarch *'' parameter. (frv_gdbarch_init): Delete calls to the following functions: set_gdbarch_deprecated_size(), set_gdbarch_deprecated_register_bytes(), set_gdbarch_deprecated_register_raw_size(), set_gdbarch_deprecated_max_register_raw_size(), set_gdbarch_deprecated_register_virtual_size(), set_gdbarch_deprecated_max_register_virtual_size(), set_gdbarch_deprecated_register_virtual_size(), set_gdbarch_deprecated_register_virtual_type(). Add call to function set_gdbarch_register_type(). --- gdb/ChangeLog | 17 +++++++++++++++++ gdb/frv-tdep.c | 25 ++++--------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 370f140b2de..c6073be7267 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,20 @@ +2003-10-26 Kevin Buettner + + * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size): + Delete. + (frv_register_type): Rename from frv_register_virtual_type. Add + ``struct gdbarch *'' parameter. + (frv_gdbarch_init): Delete calls to the following functions: + set_gdbarch_deprecated_size(), + set_gdbarch_deprecated_register_bytes(), + set_gdbarch_deprecated_register_raw_size(), + set_gdbarch_deprecated_max_register_raw_size(), + set_gdbarch_deprecated_register_virtual_size(), + set_gdbarch_deprecated_max_register_virtual_size(), + set_gdbarch_deprecated_register_virtual_size(), + set_gdbarch_deprecated_register_virtual_type(). + Add call to function set_gdbarch_register_type(). + 2003-10-26 Mark Kettenis * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM, diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c index 55e31b8a3a4..458a4b802f1 100644 --- a/gdb/frv-tdep.c +++ b/gdb/frv-tdep.c @@ -236,21 +236,8 @@ frv_register_name (int reg) return CURRENT_VARIANT->register_names[reg]; } - -static int -frv_register_raw_size (int reg) -{ - return 4; -} - -static int -frv_register_virtual_size (int reg) -{ - return 4; -} - static struct type * -frv_register_virtual_type (int reg) +frv_register_type (struct gdbarch *gdbarch, int reg) { if (reg >= 64 && reg <= 127) return builtin_type_float; @@ -1007,10 +994,12 @@ frv_frame_this_id (struct frame_info *next_frame, /* The FUNC is easy. */ func = frame_func_unwind (next_frame); +#if 0 /* This is meant to halt the backtrace at "_start". Make sure we don't halt it at a generic dummy frame. */ if (inside_entry_func (func)) return; +#endif /* Check if the stack is empty. */ msym_stack = lookup_minimal_symbol ("_stack", NULL, NULL); @@ -1149,14 +1138,8 @@ frv_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_pc_regnum (gdbarch, pc_regnum); set_gdbarch_register_name (gdbarch, frv_register_name); - set_gdbarch_deprecated_register_size (gdbarch, 4); - set_gdbarch_deprecated_register_bytes (gdbarch, frv_num_regs * 4); set_gdbarch_deprecated_register_byte (gdbarch, frv_register_byte); - set_gdbarch_deprecated_register_raw_size (gdbarch, frv_register_raw_size); - set_gdbarch_deprecated_max_register_raw_size (gdbarch, 4); - set_gdbarch_deprecated_register_virtual_size (gdbarch, frv_register_virtual_size); - set_gdbarch_deprecated_max_register_virtual_size (gdbarch, 4); - set_gdbarch_deprecated_register_virtual_type (gdbarch, frv_register_virtual_type); + set_gdbarch_register_type (gdbarch, frv_register_type); set_gdbarch_skip_prologue (gdbarch, frv_skip_prologue); set_gdbarch_breakpoint_from_pc (gdbarch, frv_breakpoint_from_pc); -- 2.30.2