aboutsummaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-21 04:21:21 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-21 04:21:21 +0000
commit23964bcd46652820a200d7cd65d24a2f9cc9f6e1 (patch)
treed46ce76edb687bba82cb03dee408c158ef416dda /gdb/d10v-tdep.c
parent2ada493ad19d2c56b79df05931f7c82710259000 (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c3
1 files changed, 2 insertions, 1 deletions
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;
}