From 96c97461222f9cb1a16b3b90fb7316c9c3d8732a Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Mon, 29 Jun 2015 10:36:55 +0100 Subject: [PATCH] [GDBServer][AArch64] Enable support for Z0 packets This patch lets GDBServer handle software breakpoints instead of relying on GDB. gdb/gdbserver/ChangeLog: * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for Z_PACKET_SW_BP. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-aarch64-low.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 8dad98ef3c2..eea8be5510e 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2015-06-29 Pierre Langlois + + * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for + Z_PACKET_SW_BP. + 2015-06-29 Pierre Langlois * linux-aarch64-low.c: Remove comment about endianness. diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c index b0a277528df..8a30b000293 100644 --- a/gdb/gdbserver/linux-aarch64-low.c +++ b/gdb/gdbserver/linux-aarch64-low.c @@ -952,13 +952,13 @@ aarch64_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: case Z_PACKET_ACCESS_WP: return 1; default: - /* Leave the handling of sw breakpoints with the gdb client. */ return 0; } } -- 2.30.2