From: Antoine Tremblay Date: Wed, 21 Oct 2015 15:13:42 +0000 (-0400) Subject: Support software breakpoints for ARM linux in GDBServer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=abeead094ef75fb896c9cabce8bf7b91da0a552c;p=binutils-gdb.git 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. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 7710886f6ec..ceb8c4d3e64 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2015-10-21 Antoine Tremblay + + * linux-arm-low.c (arm_supports_z_point_type): Add software + breakpoint support. + 2015-10-21 Antoine Tremblay * linux-arm-low.c: Refactor breakpoint definitions. diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c index 09ea4cc01a5..d3ae9f40b49 100644 --- a/gdb/gdbserver/linux-arm-low.c +++ b/gdb/gdbserver/linux-arm-low.c @@ -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: