aboutsummaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-02-09 04:46:47 +0000
committerAndrew Cagney <cagney@redhat.com>2000-02-09 04:46:47 +0000
commit489137c0360f94c18f650b810f1129569f3b3d70 (patch)
treee367cf8a0ad3d9a010fee315d116bc011bedaae3 /gdb/d10v-tdep.c
parentce808e917155449eaaf9682c74a14fe2a22ee11c (diff)
downloadgdb-489137c0360f94c18f650b810f1129569f3b3d70.zip
gdb-489137c0360f94c18f650b810f1129569f3b3d70.tar.gz
gdb-489137c0360f94c18f650b810f1129569f3b3d70.tar.bz2
Stop GDB mis-aligning the stack when doing inferior function calls.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index 68afb8c..cfd70b0 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -104,6 +104,11 @@ d10v_frame_chain_valid (chain, frame)
return ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START);
}
+CORE_ADDR
+d10v_stack_align (CORE_ADDR len)
+{
+ return (len + 1) & ~1;
+}
/* Should we use EXTRACT_STRUCT_VALUE_ADDRESS instead of
EXTRACT_RETURN_VALUE? GCC_P is true if compiled with gcc