From 1d9b2aa8d89cda5090b57ea1b854d44206242bac Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Fri, 29 Nov 2002 20:42:15 +0000 Subject: [PATCH] * m68hc11-tdep.c (m68hc11_register_raw_size): Remove. (m68hc11_register_byte): Remove. (m68hc11_gdbarch_init): Don't set the above. --- gdb/ChangeLog | 6 ++++++ gdb/m68hc11-tdep.c | 30 ------------------------------ 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6e5c8e0549c..bfe5163e3bf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-11-29 Stephane Carrez + + * m68hc11-tdep.c (m68hc11_register_raw_size): Remove. + (m68hc11_register_byte): Remove. + (m68hc11_gdbarch_init): Don't set the above. + 2002-11-29 Andrew Cagney * remote-mips.c (mips_initialize): Force a selected frame rebuild diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index 1ad58b402d2..711d0818a79 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -1177,33 +1177,6 @@ m68hc11_push_return_address (CORE_ADDR pc, CORE_ADDR sp) return sp; } -/* Index within `registers' of the first byte of the space for - register N. */ -static int -m68hc11_register_byte (int reg_nr) -{ - return (reg_nr * M68HC11_REG_SIZE); -} - -static int -m68hc11_register_raw_size (int reg_nr) -{ - switch (reg_nr) - { - case HARD_PAGE_REGNUM: - case HARD_A_REGNUM: - case HARD_B_REGNUM: - case HARD_CCR_REGNUM: - return 1; - - case M68HC12_HARD_PC_REGNUM: - return 4; - - default: - return M68HC11_REG_SIZE; - } -} - /* Test whether the ELF symbol corresponds to a function using rtc or rti to return. */ @@ -1311,9 +1284,6 @@ m68hc11_gdbarch_init (struct gdbarch_info info, set_gdbarch_fp0_regnum (gdbarch, -1); set_gdbarch_max_register_raw_size (gdbarch, 2); set_gdbarch_max_register_virtual_size (gdbarch, 2); - set_gdbarch_register_raw_size (gdbarch, m68hc11_register_raw_size); - set_gdbarch_register_virtual_size (gdbarch, m68hc11_register_raw_size); - set_gdbarch_register_byte (gdbarch, m68hc11_register_byte); set_gdbarch_frame_init_saved_regs (gdbarch, m68hc11_frame_init_saved_regs); set_gdbarch_frame_args_skip (gdbarch, 0); -- 2.30.2