aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2002-01-30 16:35:51 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2002-01-30 16:35:51 +0000
commit6eb69eab2909778dc96bdb5dbb83d7756bee4601 (patch)
treeb4c7f14bb0afa196cafda483cab452d2b0378f24 /gdb/arm-tdep.c
parentca09e32bb218843d120213458d387c84c185a187 (diff)
downloadfsf-binutils-gdb-6eb69eab2909778dc96bdb5dbb83d7756bee4601.zip
fsf-binutils-gdb-6eb69eab2909778dc96bdb5dbb83d7756bee4601.tar.gz
fsf-binutils-gdb-6eb69eab2909778dc96bdb5dbb83d7756bee4601.tar.bz2
* arm-tdep.c (arm_call_dummy_words): Define.
* arm-linux-tdep.c (arm_linux_call_dummy_words): Define. * config/arm/tm-arm.h (CALL_DUMMY_P): Define. (CALL_DUMMY_WORDS): Define. (arm_call_dummy_words): Declare. * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define. (arm_linux_call_dummy_words): Declare.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 15ae2d3..8fdb1e5 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -1249,6 +1249,20 @@ arm_push_dummy_frame (void)
write_register (SP_REGNUM, sp);
}
+/* CALL_DUMMY_WORDS:
+ This sequence of words is the instructions
+
+ mov lr,pc
+ mov pc,r4
+ illegal
+
+ Note this is 12 bytes. */
+
+LONGEST arm_call_dummy_words[] =
+{
+ 0xe1a0e00f, 0xe1a0f004, 0xe7ffdefe
+};
+
/* Fix up the call dummy, based on whether the processor is currently
in Thumb or ARM mode, and whether the target function is Thumb or
ARM. There are three different situations requiring three