Support software breakpoints for ARM linux in GDBServer.

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.
This commit is contained in:
Antoine Tremblay 2015-10-21 11:13:42 -04:00
parent b0b4b50194
commit abeead094e
2 changed files with 6 additions and 0 deletions

View 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> 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
* linux-arm-low.c: Refactor breakpoint definitions. * linux-arm-low.c: Refactor breakpoint definitions.

View File

@ -545,6 +545,7 @@ arm_supports_z_point_type (char z_type)
{ {
switch (z_type) switch (z_type)
{ {
case Z_PACKET_SW_BP:
case Z_PACKET_HW_BP: case Z_PACKET_HW_BP:
case Z_PACKET_WRITE_WP: case Z_PACKET_WRITE_WP:
case Z_PACKET_READ_WP: case Z_PACKET_READ_WP: