Support software breakpoints for ARM linux in GDBServer.
authorAntoine Tremblay <antoine.tremblay@ericsson.com>
Wed, 21 Oct 2015 15:13:42 +0000 (11:13 -0400)
committerAntoine Tremblay <antoine.tremblay@ericsson.com>
Wed, 21 Oct 2015 15:26:05 +0000 (11:26 -0400)
This patch enables software breakpoints via GDB's Z0 packets on ARM.

No regressions, tested on ubuntu 14.04 ARMv7 and x86.
With gdbserver-{native,extended} / { -marm -mthumb }

gdb/gdbserver/ChangeLog:

* linux-arm-low.c (arm_supports_z_point_type): Add software
breakpoint support.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-arm-low.c

index 7710886f6ec52a095e36b8d4090b355b8aebd6d8..ceb8c4d3e6422c2fe8a33bb7c5d105660850dc2c 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
+
+       * linux-arm-low.c (arm_supports_z_point_type): Add software
+       breakpoint support.
+
 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
 
        * linux-arm-low.c: Refactor breakpoint definitions.
index 09ea4cc01a53be8b1fba65e0ad461ae017cf73c7..d3ae9f40b490bc0b9836a54c8f686fe57403f2cf 100644 (file)
@@ -545,6 +545,7 @@ arm_supports_z_point_type (char z_type)
 {
   switch (z_type)
     {
+    case Z_PACKET_SW_BP:
     case Z_PACKET_HW_BP:
     case Z_PACKET_WRITE_WP:
     case Z_PACKET_READ_WP: