aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Langlois <pierre.langlois@arm.com>2015-06-29 10:36:55 +0100
committerPierre Langlois <pierre.langlois@arm.com>2015-06-29 10:37:09 +0100
commit96c97461222f9cb1a16b3b90fb7316c9c3d8732a (patch)
tree74ed005b256b3469e668b039bc0513fd3fce81bf
parent37d669427f8b90f3c9d17a6e04d72c731d3abdbc (diff)
downloadgdb-96c97461222f9cb1a16b3b90fb7316c9c3d8732a.zip
gdb-96c97461222f9cb1a16b3b90fb7316c9c3d8732a.tar.gz
gdb-96c97461222f9cb1a16b3b90fb7316c9c3d8732a.tar.bz2
[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.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-aarch64-low.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 8dad98e..eea8be5 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
+ * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
+ Z_PACKET_SW_BP.
+
+2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
+
* linux-aarch64-low.c: Remove comment about endianness.
(aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
(aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
index b0a2775..8a30b00 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;
}
}