diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-05-01 15:37:45 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-05-01 15:37:45 +0000 |
commit | 6ae2f58071d7321b4c82d6f3f1da6747f373f462 (patch) | |
tree | 308ad1325e29919b53aa3f16bb7a1e9f69f2a0f7 /gdb | |
parent | 81848ca0c80045dd202aec165bd56ede271f9325 (diff) | |
download | gdb-6ae2f58071d7321b4c82d6f3f1da6747f373f462.zip gdb-6ae2f58071d7321b4c82d6f3f1da6747f373f462.tar.gz gdb-6ae2f58071d7321b4c82d6f3f1da6747f373f462.tar.bz2 |
2003-05-01 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
(d10v_gdbarch_init): Set frame_align instead of stack_align.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/d10v-tdep.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6af65d1..e9221f7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-05-01 Andrew Cagney <cagney@redhat.com> + + * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align. + (d10v_gdbarch_init): Set frame_align instead of stack_align. + 2003-04-30 Andrew Cagney <cagney@redhat.com> * gdbarch.sh (deprecated_tm_print_insn_info): Rename diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index 69d8f3b..8eb9d6f 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -107,9 +107,11 @@ static void d10v_eva_prepare_to_trace (void); static void d10v_eva_get_trace_data (void); static CORE_ADDR -d10v_stack_align (CORE_ADDR len) +d10v_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp) { - return (len + 1) & ~1; + /* Align to the size of an instruction (so that they can safely be + pushed onto the stack. */ + return sp & ~3; } /* Should we use EXTRACT_STRUCT_VALUE_ADDRESS instead of @@ -1636,7 +1638,7 @@ d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_frameless_function_invocation (gdbarch, frameless_look_for_prologue); set_gdbarch_frame_num_args (gdbarch, frame_num_args_unknown); - set_gdbarch_stack_align (gdbarch, d10v_stack_align); + set_gdbarch_frame_align (gdbarch, d10v_frame_align); set_gdbarch_register_sim_regno (gdbarch, d10v_register_sim_regno); |