• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisionfdadd5333c3878eb001446d4bba21c11a7bfba05 (tree)
l'heure2006-06-09 21:12:03
AuteurNathan Sidwell <nathan@code...>
CommiterNathan Sidwell

Message de Log

gdb/
* m68k-tdep.c (m68k_frame_align): New.
(m68k_push_dummy_call): Don't align here.
(m68k_gdbarch_init): Set frame_align here.

Change Summary

Modification

--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,10 @@
1+2006-06-09 Nathan Sidwell <nathan@codesourcery.com>
2+
3+ gdb/
4+ * m68k-tdep.c (m68k_frame_align): New.
5+ (m68k_push_dummy_call): Don't align here.
6+ (m68k_gdbarch_init): Set frame_align here.
7+
18 2006-06-08 Nathan Sidwell <nathan@codesourcery.com>
29
310 * gdb/remote.c (remote_open_1): Do preopen tasks before
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -485,6 +485,16 @@ m68k_svr4_return_value (struct gdbarch *gdbarch, struct type *type,
485485 }
486486
487487
488+/* Always align the frame to a 4-byte boundary. This is required on
489+ some platforms and harmless on the rest. */
490+
491+static CORE_ADDR
492+m68k_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp)
493+{
494+ /* Align the stack to four bytes. */
495+ return sp & ~3;
496+}
497+
488498 static CORE_ADDR
489499 m68k_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
490500 struct regcache *regcache, CORE_ADDR bp_addr, int nargs,
@@ -495,9 +505,6 @@ m68k_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
495505 gdb_byte buf[4];
496506 int i;
497507
498- /* Align the stack down to 4 bytes. Needed for coldfire. */
499- sp &= ~3;
500-
501508 /* Push arguments in reverse order. */
502509 for (i = nargs - 1; i >= 0; i--)
503510 {
@@ -1249,6 +1256,7 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
12491256
12501257 /* Stack grows down. */
12511258 set_gdbarch_inner_than (gdbarch, core_addr_lessthan);
1259+ set_gdbarch_frame_align (gdbarch, m68k_frame_align);
12521260
12531261 set_gdbarch_believe_pcc_promotion (gdbarch, 1);
12541262 set_gdbarch_decr_pc_after_break (gdbarch, 2);