diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-21 04:21:21 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-21 04:21:21 +0000 |
commit | 23964bcd46652820a200d7cd65d24a2f9cc9f6e1 (patch) | |
tree | d46ce76edb687bba82cb03dee408c158ef416dda | |
parent | 2ada493ad19d2c56b79df05931f7c82710259000 (diff) | |
download | gdb-23964bcd46652820a200d7cd65d24a2f9cc9f6e1.zip gdb-23964bcd46652820a200d7cd65d24a2f9cc9f6e1.tar.gz gdb-23964bcd46652820a200d7cd65d24a2f9cc9f6e1.tar.bz2 |
* d10v-tdep.c (d10v_gdbarch_init): Initialize stack_align.
(d10v_stack_align): Make static.
* config/d10v/tm-d10v.h (STACK_ALIGN): Delete.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/config/d10v/tm-d10v.h | 3 | ||||
-rw-r--r-- | gdb/d10v-tdep.c | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 798677f..b0c3fbf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Thu Apr 20 18:15:08 2000 Andrew Cagney <cagney@b1.cygnus.com> + + * d10v-tdep.c (d10v_gdbarch_init): Initialize stack_align. + (d10v_stack_align): Make static. + * config/d10v/tm-d10v.h (STACK_ALIGN): Delete. + Thu Apr 20 14:35:46 2000 Andrew Cagney <cagney@b1.cygnus.com> * valops.c (hand_function_call): Replace #ifdef STACK_ALIGN with diff --git a/gdb/config/d10v/tm-d10v.h b/gdb/config/d10v/tm-d10v.h index a0eb3dc..44c8c7c 100644 --- a/gdb/config/d10v/tm-d10v.h +++ b/gdb/config/d10v/tm-d10v.h @@ -25,7 +25,4 @@ extern int d10v_register_sim_regno (int reg); #define REGISTER_SIM_REGNO(NR) d10v_register_sim_regno((NR)) -extern CORE_ADDR d10v_stack_align (CORE_ADDR size); -#define STACK_ALIGN(SIZE) (d10v_stack_align (SIZE)) - #define NO_EXTRA_ALIGNMENT_NEEDED 1 diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index cfd70b0..15d8175 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -104,7 +104,7 @@ d10v_frame_chain_valid (chain, frame) return ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START); } -CORE_ADDR +static CORE_ADDR d10v_stack_align (CORE_ADDR len) { return (len + 1) & ~1; @@ -1655,6 +1655,7 @@ d10v_gdbarch_init (info, arches) set_gdbarch_frame_locals_address (gdbarch, d10v_frame_locals_address); set_gdbarch_saved_pc_after_call (gdbarch, d10v_saved_pc_after_call); set_gdbarch_frame_num_args (gdbarch, frame_num_args_unknown); + set_gdbarch_stack_align (gdbarch, d10v_stack_align); return gdbarch; } |