From a90c06b44df548fe45ee9acf2a777453480eb3d9 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 3 Aug 2004 02:37:40 +0000 Subject: [PATCH] 2004-08-02 Andrew Cagney * gdbarch.sh (deprecated_register_virtual_type) (deprecated_save_dummy_frame_tos, deprecated_push_return_address) (deprecated_dummy_write_sp): Delete. * gdbarch.h, gdbarch.c: Re-generate. --- gdb/ChangeLog | 5 ++ gdb/gdbarch.c | 180 --------------------------------------------------------- gdb/gdbarch.h | 110 ----------------------------------- gdb/gdbarch.sh | 10 ---- 4 files changed, 5 insertions(+), 300 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 64c61bf..026dcb4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2004-08-02 Andrew Cagney + * gdbarch.sh (deprecated_register_virtual_type) + (deprecated_save_dummy_frame_tos, deprecated_push_return_address) + (deprecated_dummy_write_sp): Delete. + * gdbarch.h, gdbarch.c: Re-generate. + * gdbarch.sh (deprecated_register_bytes): Delete. * gdbarch.h, gdbarch.c: Re-generate. * regcache.c (deprecated_register_bytes): New function. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 5e7741b..4c45380 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -145,18 +145,14 @@ struct gdbarch gdbarch_dwarf2_reg_to_regnum_ftype *dwarf2_reg_to_regnum; gdbarch_register_name_ftype *register_name; gdbarch_register_type_ftype *register_type; - gdbarch_deprecated_register_virtual_type_ftype *deprecated_register_virtual_type; gdbarch_deprecated_register_byte_ftype *deprecated_register_byte; gdbarch_deprecated_register_raw_size_ftype *deprecated_register_raw_size; gdbarch_deprecated_register_virtual_size_ftype *deprecated_register_virtual_size; gdbarch_unwind_dummy_id_ftype *unwind_dummy_id; - gdbarch_deprecated_save_dummy_frame_tos_ftype *deprecated_save_dummy_frame_tos; int deprecated_fp_regnum; gdbarch_deprecated_target_read_fp_ftype *deprecated_target_read_fp; gdbarch_push_dummy_call_ftype *push_dummy_call; gdbarch_deprecated_push_arguments_ftype *deprecated_push_arguments; - gdbarch_deprecated_push_return_address_ftype *deprecated_push_return_address; - gdbarch_deprecated_dummy_write_sp_ftype *deprecated_dummy_write_sp; int deprecated_register_size; int call_dummy_location; gdbarch_push_dummy_code_ftype *push_dummy_code; @@ -289,18 +285,14 @@ struct gdbarch startup_gdbarch = 0, /* dwarf2_reg_to_regnum */ 0, /* register_name */ 0, /* register_type */ - 0, /* deprecated_register_virtual_type */ generic_register_byte, /* deprecated_register_byte */ generic_register_size, /* deprecated_register_raw_size */ generic_register_size, /* deprecated_register_virtual_size */ 0, /* unwind_dummy_id */ - 0, /* deprecated_save_dummy_frame_tos */ -1, /* deprecated_fp_regnum */ 0, /* deprecated_target_read_fp */ 0, /* push_dummy_call */ 0, /* deprecated_push_arguments */ - 0, /* deprecated_push_return_address */ - 0, /* deprecated_dummy_write_sp */ 0, /* deprecated_register_size */ 0, /* call_dummy_location */ 0, /* push_dummy_code */ @@ -567,18 +559,14 @@ verify_gdbarch (struct gdbarch *current_gdbarch) /* Skip verify of sdb_reg_to_regnum, invalid_p == 0 */ /* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0 */ /* Skip verify of register_type, has predicate */ - /* Skip verify of deprecated_register_virtual_type, has predicate */ /* Skip verify of deprecated_register_byte, has predicate */ /* Skip verify of deprecated_register_raw_size, has predicate */ /* Skip verify of deprecated_register_virtual_size, has predicate */ /* Skip verify of unwind_dummy_id, has predicate */ - /* Skip verify of deprecated_save_dummy_frame_tos, has predicate */ /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */ /* Skip verify of deprecated_target_read_fp, has predicate */ /* Skip verify of push_dummy_call, has predicate */ /* Skip verify of deprecated_push_arguments, has predicate */ - /* Skip verify of deprecated_push_return_address, has predicate */ - /* Skip verify of deprecated_dummy_write_sp, has predicate */ /* Skip verify of call_dummy_location, invalid_p == 0 */ /* Skip verify of push_dummy_code, has predicate */ /* Skip verify of deprecated_do_registers_info, has predicate */ @@ -883,24 +871,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) fprintf_unfiltered (file, "gdbarch_dump: deprecated_do_registers_info = <0x%lx>\n", (long) current_gdbarch->deprecated_do_registers_info); -#ifdef DEPRECATED_DUMMY_WRITE_SP_P - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "DEPRECATED_DUMMY_WRITE_SP_P()", - XSTRING (DEPRECATED_DUMMY_WRITE_SP_P ())); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: gdbarch_deprecated_dummy_write_sp_p() = %d\n", - gdbarch_deprecated_dummy_write_sp_p (current_gdbarch)); -#ifdef DEPRECATED_DUMMY_WRITE_SP - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "DEPRECATED_DUMMY_WRITE_SP(val)", - XSTRING (DEPRECATED_DUMMY_WRITE_SP (val))); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: deprecated_dummy_write_sp = <0x%lx>\n", - (long) current_gdbarch->deprecated_dummy_write_sp); #ifdef DEPRECATED_EXTRACT_RETURN_VALUE fprintf_unfiltered (file, "gdbarch_dump: %s # %s\n", @@ -1142,24 +1112,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) fprintf_unfiltered (file, "gdbarch_dump: deprecated_push_arguments = <0x%lx>\n", (long) current_gdbarch->deprecated_push_arguments); -#ifdef DEPRECATED_PUSH_RETURN_ADDRESS_P - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "DEPRECATED_PUSH_RETURN_ADDRESS_P()", - XSTRING (DEPRECATED_PUSH_RETURN_ADDRESS_P ())); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: gdbarch_deprecated_push_return_address_p() = %d\n", - gdbarch_deprecated_push_return_address_p (current_gdbarch)); -#ifdef DEPRECATED_PUSH_RETURN_ADDRESS - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "DEPRECATED_PUSH_RETURN_ADDRESS(pc, sp)", - XSTRING (DEPRECATED_PUSH_RETURN_ADDRESS (pc, sp))); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: deprecated_push_return_address = <0x%lx>\n", - (long) current_gdbarch->deprecated_push_return_address); #ifdef DEPRECATED_REG_STRUCT_HAS_ADDR_P fprintf_unfiltered (file, "gdbarch_dump: %s # %s\n", @@ -1240,42 +1192,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) fprintf_unfiltered (file, "gdbarch_dump: deprecated_register_virtual_size = <0x%lx>\n", (long) current_gdbarch->deprecated_register_virtual_size); -#ifdef DEPRECATED_REGISTER_VIRTUAL_TYPE_P - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "DEPRECATED_REGISTER_VIRTUAL_TYPE_P()", - XSTRING (DEPRECATED_REGISTER_VIRTUAL_TYPE_P ())); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: gdbarch_deprecated_register_virtual_type_p() = %d\n", - gdbarch_deprecated_register_virtual_type_p (current_gdbarch)); -#ifdef DEPRECATED_REGISTER_VIRTUAL_TYPE - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "DEPRECATED_REGISTER_VIRTUAL_TYPE(reg_nr)", - XSTRING (DEPRECATED_REGISTER_VIRTUAL_TYPE (reg_nr))); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: deprecated_register_virtual_type = <0x%lx>\n", - (long) current_gdbarch->deprecated_register_virtual_type); -#ifdef DEPRECATED_SAVE_DUMMY_FRAME_TOS_P - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "DEPRECATED_SAVE_DUMMY_FRAME_TOS_P()", - XSTRING (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ())); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: gdbarch_deprecated_save_dummy_frame_tos_p() = %d\n", - gdbarch_deprecated_save_dummy_frame_tos_p (current_gdbarch)); -#ifdef DEPRECATED_SAVE_DUMMY_FRAME_TOS - fprintf_unfiltered (file, - "gdbarch_dump: %s # %s\n", - "DEPRECATED_SAVE_DUMMY_FRAME_TOS(sp)", - XSTRING (DEPRECATED_SAVE_DUMMY_FRAME_TOS (sp))); -#endif - fprintf_unfiltered (file, - "gdbarch_dump: deprecated_save_dummy_frame_tos = <0x%lx>\n", - (long) current_gdbarch->deprecated_save_dummy_frame_tos); #ifdef DEPRECATED_SAVED_PC_AFTER_CALL_P fprintf_unfiltered (file, "gdbarch_dump: %s # %s\n", @@ -2587,30 +2503,6 @@ set_gdbarch_register_type (struct gdbarch *gdbarch, } int -gdbarch_deprecated_register_virtual_type_p (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - return gdbarch->deprecated_register_virtual_type != NULL; -} - -struct type * -gdbarch_deprecated_register_virtual_type (struct gdbarch *gdbarch, int reg_nr) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->deprecated_register_virtual_type != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_register_virtual_type called\n"); - return gdbarch->deprecated_register_virtual_type (reg_nr); -} - -void -set_gdbarch_deprecated_register_virtual_type (struct gdbarch *gdbarch, - gdbarch_deprecated_register_virtual_type_ftype deprecated_register_virtual_type) -{ - gdbarch->deprecated_register_virtual_type = deprecated_register_virtual_type; -} - -int gdbarch_deprecated_register_byte_p (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); @@ -2710,30 +2602,6 @@ set_gdbarch_unwind_dummy_id (struct gdbarch *gdbarch, } int -gdbarch_deprecated_save_dummy_frame_tos_p (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - return gdbarch->deprecated_save_dummy_frame_tos != NULL; -} - -void -gdbarch_deprecated_save_dummy_frame_tos (struct gdbarch *gdbarch, CORE_ADDR sp) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->deprecated_save_dummy_frame_tos != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_save_dummy_frame_tos called\n"); - gdbarch->deprecated_save_dummy_frame_tos (sp); -} - -void -set_gdbarch_deprecated_save_dummy_frame_tos (struct gdbarch *gdbarch, - gdbarch_deprecated_save_dummy_frame_tos_ftype deprecated_save_dummy_frame_tos) -{ - gdbarch->deprecated_save_dummy_frame_tos = deprecated_save_dummy_frame_tos; -} - -int gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); @@ -2823,54 +2691,6 @@ set_gdbarch_deprecated_push_arguments (struct gdbarch *gdbarch, } int -gdbarch_deprecated_push_return_address_p (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - return gdbarch->deprecated_push_return_address != NULL; -} - -CORE_ADDR -gdbarch_deprecated_push_return_address (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR sp) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->deprecated_push_return_address != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_push_return_address called\n"); - return gdbarch->deprecated_push_return_address (pc, sp); -} - -void -set_gdbarch_deprecated_push_return_address (struct gdbarch *gdbarch, - gdbarch_deprecated_push_return_address_ftype deprecated_push_return_address) -{ - gdbarch->deprecated_push_return_address = deprecated_push_return_address; -} - -int -gdbarch_deprecated_dummy_write_sp_p (struct gdbarch *gdbarch) -{ - gdb_assert (gdbarch != NULL); - return gdbarch->deprecated_dummy_write_sp != NULL; -} - -void -gdbarch_deprecated_dummy_write_sp (struct gdbarch *gdbarch, CORE_ADDR val) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->deprecated_dummy_write_sp != NULL); - if (gdbarch_debug >= 2) - fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_dummy_write_sp called\n"); - gdbarch->deprecated_dummy_write_sp (val); -} - -void -set_gdbarch_deprecated_dummy_write_sp (struct gdbarch *gdbarch, - gdbarch_deprecated_dummy_write_sp_ftype deprecated_dummy_write_sp) -{ - gdbarch->deprecated_dummy_write_sp = deprecated_dummy_write_sp; -} - -int gdbarch_deprecated_register_size (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 7b07130..f381fec 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -454,33 +454,6 @@ typedef struct type * (gdbarch_register_type_ftype) (struct gdbarch *gdbarch, in extern struct type * gdbarch_register_type (struct gdbarch *gdbarch, int reg_nr); extern void set_gdbarch_register_type (struct gdbarch *gdbarch, gdbarch_register_type_ftype *register_type); -/* REGISTER_TYPE is a direct replacement for DEPRECATED_REGISTER_VIRTUAL_TYPE. */ - -#if defined (DEPRECATED_REGISTER_VIRTUAL_TYPE) -/* Legacy for systems yet to multi-arch DEPRECATED_REGISTER_VIRTUAL_TYPE */ -#if !defined (DEPRECATED_REGISTER_VIRTUAL_TYPE_P) -#define DEPRECATED_REGISTER_VIRTUAL_TYPE_P() (1) -#endif -#endif - -extern int gdbarch_deprecated_register_virtual_type_p (struct gdbarch *gdbarch); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_REGISTER_VIRTUAL_TYPE_P) -#error "Non multi-arch definition of DEPRECATED_REGISTER_VIRTUAL_TYPE" -#endif -#if !defined (DEPRECATED_REGISTER_VIRTUAL_TYPE_P) -#define DEPRECATED_REGISTER_VIRTUAL_TYPE_P() (gdbarch_deprecated_register_virtual_type_p (current_gdbarch)) -#endif - -typedef struct type * (gdbarch_deprecated_register_virtual_type_ftype) (int reg_nr); -extern struct type * gdbarch_deprecated_register_virtual_type (struct gdbarch *gdbarch, int reg_nr); -extern void set_gdbarch_deprecated_register_virtual_type (struct gdbarch *gdbarch, gdbarch_deprecated_register_virtual_type_ftype *deprecated_register_virtual_type); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_REGISTER_VIRTUAL_TYPE) -#error "Non multi-arch definition of DEPRECATED_REGISTER_VIRTUAL_TYPE" -#endif -#if !defined (DEPRECATED_REGISTER_VIRTUAL_TYPE) -#define DEPRECATED_REGISTER_VIRTUAL_TYPE(reg_nr) (gdbarch_deprecated_register_virtual_type (current_gdbarch, reg_nr)) -#endif - /* If the value returned by DEPRECATED_REGISTER_BYTE agrees with the register offsets computed using just REGISTER_TYPE, this can be deleted. See: maint print registers. NOTE: cagney/2002-05-02: This @@ -583,34 +556,6 @@ extern struct frame_id gdbarch_unwind_dummy_id (struct gdbarch *gdbarch, struct extern void set_gdbarch_unwind_dummy_id (struct gdbarch *gdbarch, gdbarch_unwind_dummy_id_ftype *unwind_dummy_id); /* Implement UNWIND_DUMMY_ID and PUSH_DUMMY_CALL, then delete - SAVE_DUMMY_FRAME_TOS. */ - -#if defined (DEPRECATED_SAVE_DUMMY_FRAME_TOS) -/* Legacy for systems yet to multi-arch DEPRECATED_SAVE_DUMMY_FRAME_TOS */ -#if !defined (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P) -#define DEPRECATED_SAVE_DUMMY_FRAME_TOS_P() (1) -#endif -#endif - -extern int gdbarch_deprecated_save_dummy_frame_tos_p (struct gdbarch *gdbarch); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P) -#error "Non multi-arch definition of DEPRECATED_SAVE_DUMMY_FRAME_TOS" -#endif -#if !defined (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P) -#define DEPRECATED_SAVE_DUMMY_FRAME_TOS_P() (gdbarch_deprecated_save_dummy_frame_tos_p (current_gdbarch)) -#endif - -typedef void (gdbarch_deprecated_save_dummy_frame_tos_ftype) (CORE_ADDR sp); -extern void gdbarch_deprecated_save_dummy_frame_tos (struct gdbarch *gdbarch, CORE_ADDR sp); -extern void set_gdbarch_deprecated_save_dummy_frame_tos (struct gdbarch *gdbarch, gdbarch_deprecated_save_dummy_frame_tos_ftype *deprecated_save_dummy_frame_tos); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_SAVE_DUMMY_FRAME_TOS) -#error "Non multi-arch definition of DEPRECATED_SAVE_DUMMY_FRAME_TOS" -#endif -#if !defined (DEPRECATED_SAVE_DUMMY_FRAME_TOS) -#define DEPRECATED_SAVE_DUMMY_FRAME_TOS(sp) (gdbarch_deprecated_save_dummy_frame_tos (current_gdbarch, sp)) -#endif - -/* Implement UNWIND_DUMMY_ID and PUSH_DUMMY_CALL, then delete DEPRECATED_FP_REGNUM. */ extern int gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch); @@ -686,61 +631,6 @@ extern void set_gdbarch_deprecated_push_arguments (struct gdbarch *gdbarch, gdba #define DEPRECATED_PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) (gdbarch_deprecated_push_arguments (current_gdbarch, nargs, args, sp, struct_return, struct_addr)) #endif -/* Implement PUSH_RETURN_ADDRESS, and then merge in - DEPRECATED_PUSH_RETURN_ADDRESS. */ - -#if defined (DEPRECATED_PUSH_RETURN_ADDRESS) -/* Legacy for systems yet to multi-arch DEPRECATED_PUSH_RETURN_ADDRESS */ -#if !defined (DEPRECATED_PUSH_RETURN_ADDRESS_P) -#define DEPRECATED_PUSH_RETURN_ADDRESS_P() (1) -#endif -#endif - -extern int gdbarch_deprecated_push_return_address_p (struct gdbarch *gdbarch); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_PUSH_RETURN_ADDRESS_P) -#error "Non multi-arch definition of DEPRECATED_PUSH_RETURN_ADDRESS" -#endif -#if !defined (DEPRECATED_PUSH_RETURN_ADDRESS_P) -#define DEPRECATED_PUSH_RETURN_ADDRESS_P() (gdbarch_deprecated_push_return_address_p (current_gdbarch)) -#endif - -typedef CORE_ADDR (gdbarch_deprecated_push_return_address_ftype) (CORE_ADDR pc, CORE_ADDR sp); -extern CORE_ADDR gdbarch_deprecated_push_return_address (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR sp); -extern void set_gdbarch_deprecated_push_return_address (struct gdbarch *gdbarch, gdbarch_deprecated_push_return_address_ftype *deprecated_push_return_address); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_PUSH_RETURN_ADDRESS) -#error "Non multi-arch definition of DEPRECATED_PUSH_RETURN_ADDRESS" -#endif -#if !defined (DEPRECATED_PUSH_RETURN_ADDRESS) -#define DEPRECATED_PUSH_RETURN_ADDRESS(pc, sp) (gdbarch_deprecated_push_return_address (current_gdbarch, pc, sp)) -#endif - -/* Implement PUSH_DUMMY_CALL, then merge in DEPRECATED_DUMMY_WRITE_SP. */ - -#if defined (DEPRECATED_DUMMY_WRITE_SP) -/* Legacy for systems yet to multi-arch DEPRECATED_DUMMY_WRITE_SP */ -#if !defined (DEPRECATED_DUMMY_WRITE_SP_P) -#define DEPRECATED_DUMMY_WRITE_SP_P() (1) -#endif -#endif - -extern int gdbarch_deprecated_dummy_write_sp_p (struct gdbarch *gdbarch); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_DUMMY_WRITE_SP_P) -#error "Non multi-arch definition of DEPRECATED_DUMMY_WRITE_SP" -#endif -#if !defined (DEPRECATED_DUMMY_WRITE_SP_P) -#define DEPRECATED_DUMMY_WRITE_SP_P() (gdbarch_deprecated_dummy_write_sp_p (current_gdbarch)) -#endif - -typedef void (gdbarch_deprecated_dummy_write_sp_ftype) (CORE_ADDR val); -extern void gdbarch_deprecated_dummy_write_sp (struct gdbarch *gdbarch, CORE_ADDR val); -extern void set_gdbarch_deprecated_dummy_write_sp (struct gdbarch *gdbarch, gdbarch_deprecated_dummy_write_sp_ftype *deprecated_dummy_write_sp); -#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_DUMMY_WRITE_SP) -#error "Non multi-arch definition of DEPRECATED_DUMMY_WRITE_SP" -#endif -#if !defined (DEPRECATED_DUMMY_WRITE_SP) -#define DEPRECATED_DUMMY_WRITE_SP(val) (gdbarch_deprecated_dummy_write_sp (current_gdbarch, val)) -#endif - /* DEPRECATED_REGISTER_SIZE can be deleted. */ extern int gdbarch_deprecated_register_size (struct gdbarch *gdbarch); diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 7c687a3..2f89c8b 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -461,8 +461,6 @@ f:=:const char *:register_name:int regnr:regnr # REGISTER_TYPE is a direct replacement for DEPRECATED_REGISTER_VIRTUAL_TYPE. M::struct type *:register_type:int reg_nr:reg_nr -# REGISTER_TYPE is a direct replacement for DEPRECATED_REGISTER_VIRTUAL_TYPE. -F:=:struct type *:deprecated_register_virtual_type:int reg_nr:reg_nr # If the value returned by DEPRECATED_REGISTER_BYTE agrees with the # register offsets computed using just REGISTER_TYPE, this can be # deleted. See: maint print registers. NOTE: cagney/2002-05-02: This @@ -485,9 +483,6 @@ F:=:int:deprecated_register_virtual_size:int reg_nr:reg_nr::generic_register_siz # See gdbint.texinfo, and PUSH_DUMMY_CALL. M::struct frame_id:unwind_dummy_id:struct frame_info *info:info # Implement UNWIND_DUMMY_ID and PUSH_DUMMY_CALL, then delete -# SAVE_DUMMY_FRAME_TOS. -F:=:void:deprecated_save_dummy_frame_tos:CORE_ADDR sp:sp -# Implement UNWIND_DUMMY_ID and PUSH_DUMMY_CALL, then delete # DEPRECATED_FP_REGNUM. v:=:int:deprecated_fp_regnum::::-1:-1::0 # Implement UNWIND_DUMMY_ID and PUSH_DUMMY_CALL, then delete @@ -499,11 +494,6 @@ F:=:CORE_ADDR:deprecated_target_read_fp:void M::CORE_ADDR:push_dummy_call:struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr:function, regcache, bp_addr, nargs, args, sp, struct_return, struct_addr # PUSH_DUMMY_CALL is a direct replacement for DEPRECATED_PUSH_ARGUMENTS. F:=:CORE_ADDR:deprecated_push_arguments:int nargs, struct value **args, CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr:nargs, args, sp, struct_return, struct_addr -# Implement PUSH_RETURN_ADDRESS, and then merge in -# DEPRECATED_PUSH_RETURN_ADDRESS. -F:=:CORE_ADDR:deprecated_push_return_address:CORE_ADDR pc, CORE_ADDR sp:pc, sp -# Implement PUSH_DUMMY_CALL, then merge in DEPRECATED_DUMMY_WRITE_SP. -F:=:void:deprecated_dummy_write_sp:CORE_ADDR val:val # DEPRECATED_REGISTER_SIZE can be deleted. v:=:int:deprecated_register_size v:=:int:call_dummy_location:::::AT_ENTRY_POINT::0 -- 2.7.4