aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-06-22 00:33:56 +0000
committerAndrew Cagney <cagney@redhat.com>2002-06-22 00:33:56 +0000
commit78f6d055c03b015e5d7d22ff0bfaefa0eea6243e (patch)
tree5403205f7e36a268a700f539f4fdd95dd0d7c18c
parent78b119cb5dbfe838fa6ecfedba96bd5c04064514 (diff)
downloadgdb-78f6d055c03b015e5d7d22ff0bfaefa0eea6243e.zip
gdb-78f6d055c03b015e5d7d22ff0bfaefa0eea6243e.tar.gz
gdb-78f6d055c03b015e5d7d22ff0bfaefa0eea6243e.tar.bz2
* config/m68k/tm-m68k.h: Fix typo.
(FRAME_INIT_SAVED_REGS): Define when non-multi-arch. (m68k_frame_init_saved_regs): Declare.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/config/m68k/tm-m68k.h15
2 files changed, 20 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1fc1844..a234031 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-06-21 Andrew Cagney <ac131313@redhat.com>
+
+ * config/m68k/tm-m68k.h: Fix typo.
+ (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
+ (m68k_frame_init_saved_regs): Declare.
+
2002-06-21 Jim Blandy <jimb@redhat.com>
Remove some vestiges of Harris 88k support.
diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h
index 0954a02..bf6ee96 100644
--- a/gdb/config/m68k/tm-m68k.h
+++ b/gdb/config/m68k/tm-m68k.h
@@ -298,6 +298,19 @@ extern CORE_ADDR m68k_saved_pc_after_call (struct frame_info *);
/* Return number of bytes at start of arglist that are not really args. */
#define FRAME_ARGS_SKIP 8
+
+/* Put here the code to store, into a struct frame_saved_regs,
+ the addresses of the saved registers of frame described by FRAME_INFO.
+ This includes special registers such as pc and fp saved in special
+ ways in the stack frame. sp is even more special:
+ the address we return for it IS the sp for the next frame. */
+
+#if !GDB_MULTI_ARCH
+#if !defined (FRAME_INIT_SAVED_REGS)
+#define FRAME_INIT_SAVED_REGS(fi) m68k_frame_init_saved_regs ((fi))
+void m68k_frame_init_saved_regs (struct frame_info *frame_info);
+#endif /* no FRAME_INIT_SAVED_REGS. */
+#endif
/* Things needed for making the inferior call functions. */
@@ -331,7 +344,7 @@ extern CORE_ADDR m68k_saved_pc_after_call (struct frame_info *);
/* FIXME: Wrong to hardwire this as BPT_VECTOR when sometimes it
should be REMOTE_BPT_VECTOR. Best way to fix it would be to define
CALL_DUMMY_BREAKPOINT_OFFSET. */
-#if !GDB_MULTI_ARCH_PARTIAL
+#if !GDB_MULTI_ARCH
#define CALL_DUMMY {0xf227e0ff, 0x48e7fffc, 0x426742e7, 0x4eb93232, 0x3232dffc, 0x69696969, (0x4e404e71 | (BPT_VECTOR << 16))}
#define CALL_DUMMY_LENGTH 28 /* Size of CALL_DUMMY */
#define CALL_DUMMY_START_OFFSET 12 /* Offset to jsr instruction */