summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2005-03-25 21:19:20 +0000
committerDaniel Jacobowitz <dan@debian.org>2005-03-25 21:19:20 +0000
commitccc0cfce6e517ca131e866c922531c87cb4f9ba3 (patch)
treeaadb14dca371e0265c2973f0081cc97d1dbd22b6
parentc3a099eeb4e932fcf07cb0c7660dd79f505027ca (diff)
downloadgdb-ccc0cfce6e517ca131e866c922531c87cb4f9ba3.tar.gz
* gdb/arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
(arm_linux_thumb_le_breakpoint): New. Update comments. (arm_linux_init_abi): Set Thumb breakpoints also.
-rw-r--r--ChangeLog.csl6
-rw-r--r--gdb/arm-linux-tdep.c18
2 files changed, 20 insertions, 4 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index 5d01c91974d..af34fdf1d3a 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,5 +1,11 @@
2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
+ * gdb/arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
+ (arm_linux_thumb_le_breakpoint): New. Update comments.
+ (arm_linux_init_abi): Set Thumb breakpoints also.
+
+2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
+
* gdb/Makefile.in (arm-tdep.o): Update dependencies.
* gdb/arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
(arm_gdbarch_init): Register dwarf2_frame_sniffer.
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 3b7699dc447..d4b2899f61e 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -39,13 +39,16 @@
is to execute a particular software interrupt, rather than use a
particular undefined instruction to provoke a trap. Upon exection
of the software interrupt the kernel stops the inferior with a
- SIGTRAP, and wakes the debugger. Since ARM GNU/Linux doesn't support
- Thumb at the moment we only override the ARM breakpoints. */
+ SIGTRAP, and wakes the debugger. */
static const char arm_linux_arm_le_breakpoint[] = { 0x01, 0x00, 0x9f, 0xef };
static const char arm_linux_arm_be_breakpoint[] = { 0xef, 0x9f, 0x00, 0x01 };
+static const char arm_linux_thumb_be_breakpoint[] = {0xde, 0x01};
+
+static const char arm_linux_thumb_le_breakpoint[] = {0x01, 0xde};
+
/* Description of the longjmp buffer. */
#define ARM_LINUX_JB_ELEMENT_SIZE INT_REGISTER_SIZE
#define ARM_LINUX_JB_PC 21
@@ -465,10 +468,17 @@ arm_linux_init_abi (struct gdbarch_info info,
tdep->lowest_pc = 0x8000;
if (info.byte_order == BFD_ENDIAN_BIG)
- tdep->arm_breakpoint = arm_linux_arm_be_breakpoint;
+ {
+ tdep->arm_breakpoint = arm_linux_arm_be_breakpoint;
+ tdep->thumb_breakpoint = arm_linux_thumb_be_breakpoint;
+ }
else
- tdep->arm_breakpoint = arm_linux_arm_le_breakpoint;
+ {
+ tdep->arm_breakpoint = arm_linux_arm_le_breakpoint;
+ tdep->thumb_breakpoint = arm_linux_thumb_le_breakpoint;
+ }
tdep->arm_breakpoint_size = sizeof (arm_linux_arm_le_breakpoint);
+ tdep->thumb_breakpoint_size = sizeof (arm_linux_thumb_le_breakpoint);
tdep->fp_model = ARM_FLOAT_FPA;