aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2003-05-25 21:15:20 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2003-05-25 21:15:20 +0000
commit78bf922a939cd13f50bf3db5b2dcbdbf43d157b5 (patch)
tree21b282b56fe87d0e2d8f0412469ff9091094471d
parenteb2e12d711192f4fffab8ae75ed40701b42e0bc9 (diff)
downloadgdb-78bf922a939cd13f50bf3db5b2dcbdbf43d157b5.zip
gdb-78bf922a939cd13f50bf3db5b2dcbdbf43d157b5.tar.gz
gdb-78bf922a939cd13f50bf3db5b2dcbdbf43d157b5.tar.bz2
* m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
stack_align and deprecated_extra_stack_alignment_needed. (m68k_stack_align): Delete.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/m68k-tdep.c11
2 files changed, 5 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3d478b3..0e10970 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2003-05-25 Andreas Schwab <schwab@suse.de>
+ * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
+ stack_align and deprecated_extra_stack_alignment_needed.
+ (m68k_stack_align): Delete.
+
* m68k-tdep.c (m68k_register_raw_size): Remove cast.
(m68k_register_virtual_size): Likewise.
(altos_skip_prologue): Remove obsolete function.
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 81973a1..fbbac63 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -176,14 +176,6 @@ m68k_register_name (int regnum)
return register_names[regnum];
}
-/* Stack must be kept short aligned when doing function calls. */
-
-static CORE_ADDR
-m68k_stack_align (CORE_ADDR addr)
-{
- return ((addr + 1) & ~1);
-}
-
/* Index within `registers' of the first byte of the space for
register regnum. */
@@ -922,8 +914,7 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Stack grows down. */
set_gdbarch_inner_than (gdbarch, core_addr_lessthan);
- set_gdbarch_stack_align (gdbarch, m68k_stack_align);
- set_gdbarch_deprecated_extra_stack_alignment_needed (gdbarch, 1);
+ set_gdbarch_parm_boundary (gdbarch, 32);
set_gdbarch_believe_pcc_promotion (gdbarch, 1);
set_gdbarch_decr_pc_after_break (gdbarch, 2);