From 18cde8d5ad64dbd34ca0f86458d5b5fb631de1eb Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 16 Nov 2002 01:00:07 +0000 Subject: [PATCH] 2002-11-15 Andrew Cagney * frame.c (generic_unwind_get_saved_register): Make static. * frame.h (generic_unwind_get_saved_register): Delete declaration. * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register, defaults to generic_unwind_get_saved_register. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * h8300-tdep.c (h8300_gdbarch_init): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * i386-tdep.c (i386_gdbarch_init): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. * v850-tdep.c (v850_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto. * d10v-tdep.c (d10v_gdbarch_init): Ditto. * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro. --- gdb/ChangeLog | 17 +++++++++++++++++ gdb/avr-tdep.c | 2 -- gdb/config/mn10200/tm-mn10200.h | 5 ----- gdb/d10v-tdep.c | 1 - gdb/frame.c | 2 +- gdb/frame.h | 7 ------- gdb/frv-tdep.c | 2 -- gdb/h8300-tdep.c | 1 - gdb/i386-tdep.c | 2 -- gdb/mcore-tdep.c | 1 - gdb/mn10300-tdep.c | 1 - gdb/rs6000-tdep.c | 1 - gdb/s390-tdep.c | 1 - gdb/v850-tdep.c | 1 - 14 files changed, 18 insertions(+), 26 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 639ccf905a7..29eb8e576bd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,20 @@ +2002-11-15 Andrew Cagney + + * frame.c (generic_unwind_get_saved_register): Make static. + * frame.h (generic_unwind_get_saved_register): Delete declaration. + * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register, + defaults to generic_unwind_get_saved_register. + * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. + * h8300-tdep.c (h8300_gdbarch_init): Ditto. + * frv-tdep.c (frv_gdbarch_init): Ditto. + * i386-tdep.c (i386_gdbarch_init): Ditto. + * s390-tdep.c (s390_gdbarch_init): Ditto. + * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. + * v850-tdep.c (v850_gdbarch_init): Ditto. + * mcore-tdep.c (mcore_gdbarch_init): Ditto. + * d10v-tdep.c (d10v_gdbarch_init): Ditto. + * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro. + 2002-11-15 Andrew Cagney * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index c67e4e8d8d5..284a3965757 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -1215,8 +1215,6 @@ avr_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_max_register_virtual_size (gdbarch, 4); set_gdbarch_register_virtual_type (gdbarch, avr_register_virtual_type); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); - set_gdbarch_print_insn (gdbarch, print_insn_avr); set_gdbarch_use_generic_dummy_frames (gdbarch, 1); diff --git a/gdb/config/mn10200/tm-mn10200.h b/gdb/config/mn10200/tm-mn10200.h index 47bd7a04c52..0fe58d818e3 100644 --- a/gdb/config/mn10200/tm-mn10200.h +++ b/gdb/config/mn10200/tm-mn10200.h @@ -210,10 +210,5 @@ extern CORE_ADDR mn10200_push_arguments (int, struct value **, CORE_ADDR, extern use_struct_convention_fn mn10200_use_struct_convention; #define USE_STRUCT_CONVENTION(GCC_P, TYPE) mn10200_use_struct_convention (GCC_P, TYPE) -/* Override the default get_saved_register function with - one that takes account of generic CALL_DUMMY frames. */ -#define GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval) \ - generic_unwind_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval) - /* Define this for Wingdb */ #define TARGET_MN10200 diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index 1b2987ad67e..dd5df774436 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -1604,7 +1604,6 @@ d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_sizeof_call_dummy_words (gdbarch, sizeof (d10v_call_dummy_words)); set_gdbarch_call_dummy_p (gdbarch, 1); set_gdbarch_call_dummy_stack_adjust_p (gdbarch, 0); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); set_gdbarch_fix_call_dummy (gdbarch, generic_fix_call_dummy); set_gdbarch_deprecated_extract_return_value (gdbarch, d10v_extract_return_value); diff --git a/gdb/frame.c b/gdb/frame.c index 6cd1777c397..cd0c3792c3a 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -261,7 +261,7 @@ frame_read_signed_register (struct frame_info *frame, int regnum, frame_unwind_signed_register (get_next_frame (frame), regnum, val); } -void +static void generic_unwind_get_saved_register (char *raw_buffer, int *optimizedp, CORE_ADDR *addrp, diff --git a/gdb/frame.h b/gdb/frame.h index d8c3af4af04..1872f4f5c2e 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -424,13 +424,6 @@ extern void deprecated_generic_get_saved_register (char *, int *, CORE_ADDR *, struct frame_info *, int, enum lval_type *); -extern void generic_unwind_get_saved_register (char *raw_buffer, - int *optimized, - CORE_ADDR * addrp, - struct frame_info *frame, - int regnum, - enum lval_type *lval); - extern void generic_save_call_dummy_addr (CORE_ADDR lo, CORE_ADDR hi); extern void get_saved_register (char *raw_buffer, int *optimized, diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c index 48576cbd17d..ae5fb2bcb63 100644 --- a/gdb/frv-tdep.c +++ b/gdb/frv-tdep.c @@ -1126,8 +1126,6 @@ frv_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_push_dummy_frame (gdbarch, generic_push_dummy_frame); set_gdbarch_fix_call_dummy (gdbarch, generic_fix_call_dummy); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); - set_gdbarch_decr_pc_after_break (gdbarch, 0); set_gdbarch_function_start_offset (gdbarch, 0); set_gdbarch_register_convertible (gdbarch, generic_register_convertible_not); diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 0b0578c5fe7..f5779cb1e35 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -1106,7 +1106,6 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_init_extra_frame_info (gdbarch, h8300_init_extra_frame_info); set_gdbarch_frame_init_saved_regs (gdbarch, h8300_frame_init_saved_regs); set_gdbarch_frame_chain (gdbarch, h8300_frame_chain); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); set_gdbarch_saved_pc_after_call (gdbarch, h8300_saved_pc_after_call); set_gdbarch_frame_saved_pc (gdbarch, h8300_frame_saved_pc); set_gdbarch_skip_prologue (gdbarch, h8300_skip_prologue); diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index d658e3ab26b..579652fcb6d 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -1598,8 +1598,6 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) i386_register_convert_to_virtual); set_gdbarch_register_convert_to_raw (gdbarch, i386_register_convert_to_raw); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); - set_gdbarch_pc_in_call_dummy (gdbarch, pc_in_call_dummy_at_entry_point); /* "An argument's size is increased, if necessary, to make it a diff --git a/gdb/mcore-tdep.c b/gdb/mcore-tdep.c index 23ee96f2790..9f72876b103 100644 --- a/gdb/mcore-tdep.c +++ b/gdb/mcore-tdep.c @@ -1100,7 +1100,6 @@ mcore_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_pc_regnum (gdbarch, 64); set_gdbarch_sp_regnum (gdbarch, 0); set_gdbarch_fp_regnum (gdbarch, 0); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); /* Call Dummies: */ diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index ed55da92add..cc7c6c8f868 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -1162,7 +1162,6 @@ mn10300_gdbarch_init (struct gdbarch_info info, set_gdbarch_decr_pc_after_break (gdbarch, 0); /* Stack unwinding. */ - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); set_gdbarch_frame_chain_valid (gdbarch, generic_file_frame_chain_valid); set_gdbarch_inner_than (gdbarch, core_addr_lessthan); set_gdbarch_frame_chain_valid (gdbarch, generic_file_frame_chain_valid); diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 26f5e4c891b..0c7f389470e 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -2890,7 +2890,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_pc_in_call_dummy (gdbarch, generic_pc_in_call_dummy); set_gdbarch_call_dummy_p (gdbarch, 1); set_gdbarch_call_dummy_stack_adjust_p (gdbarch, 0); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); set_gdbarch_fix_call_dummy (gdbarch, rs6000_fix_call_dummy); set_gdbarch_frame_align (gdbarch, rs6000_frame_align); set_gdbarch_push_dummy_frame (gdbarch, generic_push_dummy_frame); diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index 94defe5aee9..62e658b4d3e 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -1811,7 +1811,6 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_num_regs (gdbarch, S390_NUM_REGS); set_gdbarch_cannot_fetch_register (gdbarch, s390_cannot_fetch_register); set_gdbarch_cannot_store_register (gdbarch, s390_cannot_fetch_register); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); set_gdbarch_use_struct_convention (gdbarch, s390_use_struct_convention); set_gdbarch_frame_chain_valid (gdbarch, func_frame_chain_valid); set_gdbarch_register_name (gdbarch, s390_register_name); diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c index eae7db6958a..b6f4a7308f9 100644 --- a/gdb/v850-tdep.c +++ b/gdb/v850-tdep.c @@ -1233,7 +1233,6 @@ v850_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_init_extra_frame_info (gdbarch, v850_init_extra_frame_info); set_gdbarch_frame_init_saved_regs (gdbarch, v850_frame_init_saved_regs); set_gdbarch_frame_chain (gdbarch, v850_frame_chain); - set_gdbarch_get_saved_register (gdbarch, generic_unwind_get_saved_register); set_gdbarch_saved_pc_after_call (gdbarch, v850_saved_pc_after_call); set_gdbarch_frame_saved_pc (gdbarch, v850_frame_saved_pc); set_gdbarch_skip_prologue (gdbarch, v850_skip_prologue); -- 2.30.2