* arm-linux-tdep.c (arm_linux_thumb_be_breakpoint)
authorDaniel Jacobowitz <drow@false.org>
Tue, 29 Mar 2005 16:57:30 +0000 (16:57 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 29 Mar 2005 16:57:30 +0000 (16:57 +0000)
(arm_linux_thumb_le_breakpoint): New.  Update comments.
(arm_linux_init_abi): Set Thumb breakpoints also.

gdb/ChangeLog
gdb/arm-linux-tdep.c

index fafdb9196f5db0c89f620a642e7df5b5e5e090e3..e0a34a33683afa0211a09b0896554a0ff8b5d850 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * 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-29  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * Makefile.in (arm-tdep.o): Update dependencies.
index 3b7699dc4473584d76338aa5cbe0c8cb85484ead..d4b2899f61e76832a26a55490c2912a401d3db95 100644 (file)
    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;
 
This page took 0.029514 seconds and 4 git commands to generate.