aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-16 01:00:07 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-16 01:00:07 +0000
commit18cde8d5ad64dbd34ca0f86458d5b5fb631de1eb (patch)
treeeb0e7d0e99ab14002817cd527584a7ba60ef296c
parenta6b063af0fd3cd7ac6ea7e2d360b00361bb6b1a8 (diff)
downloadgdb-18cde8d5ad64dbd34ca0f86458d5b5fb631de1eb.zip
gdb-18cde8d5ad64dbd34ca0f86458d5b5fb631de1eb.tar.gz
gdb-18cde8d5ad64dbd34ca0f86458d5b5fb631de1eb.tar.bz2
2002-11-15 Andrew Cagney <cagney@redhat.com>
* 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.
-rw-r--r--gdb/ChangeLog17
-rw-r--r--gdb/avr-tdep.c2
-rw-r--r--gdb/config/mn10200/tm-mn10200.h5
-rw-r--r--gdb/d10v-tdep.c1
-rw-r--r--gdb/frame.c2
-rw-r--r--gdb/frame.h7
-rw-r--r--gdb/frv-tdep.c2
-rw-r--r--gdb/h8300-tdep.c1
-rw-r--r--gdb/i386-tdep.c2
-rw-r--r--gdb/mcore-tdep.c1
-rw-r--r--gdb/mn10300-tdep.c1
-rw-r--r--gdb/rs6000-tdep.c1
-rw-r--r--gdb/s390-tdep.c1
-rw-r--r--gdb/v850-tdep.c1
14 files changed, 18 insertions, 26 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 639ccf9..29eb8e5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,22 @@
2002-11-15 Andrew Cagney <cagney@redhat.com>
+ * 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 <cagney@redhat.com>
+
* x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
i386-tdep.c.
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c
index c67e4e8..284a396 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 47bd7a0..0fe58d8 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 1b2987a..dd5df77 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 6cd1777..cd0c379 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 d8c3af4..1872f4f 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 48576cb..ae5fb2b 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 0b0578c..f5779cb 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 d658e3a..579652f 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 23ee96f..9f72876 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 ed55da9..cc7c6c8 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 26f5e4c..0c7f389 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 94defe5..62e658b 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 eae7db6..b6f4a73 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);