summaryrefslogtreecommitdiff
path: root/gdb/arm-linux-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-linux-tdep.c
parentca09e32bb218843d120213458d387c84c185a187 (diff)
downloadbinutils-gdb-6eb69eab2909778dc96bdb5dbb83d7756bee4601.tar.gz
* 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-linux-tdep.c')
-rw-r--r--gdb/arm-linux-tdep.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 65227302146..ff896d95c40 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -33,6 +33,20 @@
#include "symfile.h"
#include "objfiles.h"
+/* CALL_DUMMY_WORDS:
+ This sequence of words is the instructions
+
+ mov lr, pc
+ mov pc, r4
+ swi bkpt_swi
+
+ Note this is 12 bytes. */
+
+LONGEST arm_linux_call_dummy_words[] =
+{
+ 0xe1a0e00f, 0xe1a0f004, 0xef9f001
+};
+
#ifdef GET_LONGJMP_TARGET
/* Figure out where the longjmp will land. We expect that we have