From: Pierre Langlois <pierre.langlois@arm.com>
To: gdb-patches@sourceware.org
Cc: Pierre Langlois <pierre.langlois@arm.com>
Subject: [PATCH 2/2] [GDBServer][AArch64] Enable support for Z0 packets
Date: Fri, 26 Jun 2015 13:42:00 -0000 [thread overview]
Message-ID: <1435326128-13705-3-git-send-email-pierre.langlois@arm.com> (raw)
In-Reply-To: <1435326128-13705-1-git-send-email-pierre.langlois@arm.com>
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 dde7e9e..6873b0c 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2015-06-26 Pierre Langlois <pierre.langlois@arm.com>
+ * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
+ Z_PACKET_SW_BP.
+
+2015-06-26 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;
}
}
--
2.1.0
next prev parent reply other threads:[~2015-06-26 13:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 13:42 [PATCH 0/2][GDBServer][AArch64] " Pierre Langlois
2015-06-26 13:42 ` Pierre Langlois [this message]
2015-06-29 8:08 ` [PATCH 2/2] [GDBServer][AArch64] " Yao Qi
2015-06-26 13:42 ` [PATCH 1/2] [GDBServer][AArch64] Use the same break instruction as GDB Pierre Langlois
2015-06-29 8:07 ` Yao Qi
2015-06-29 9:40 ` [PATCH 0/2][GDBServer][AArch64] Enable support for Z0 packets Pierre Langlois
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435326128-13705-3-git-send-email-pierre.langlois@arm.com \
--to=pierre.langlois@arm.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).