From: Yao Qi <qiyaoltc@gmail.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 3/3] Enable range stepping if software single step is supported
Date: Mon, 26 Sep 2016 02:25:00 -0000 [thread overview]
Message-ID: <1474856716-5913-4-git-send-email-yao.qi@linaro.org> (raw)
In-Reply-To: <1474856716-5913-1-git-send-email-yao.qi@linaro.org>
If the target can do software single step, it can do range
stepping.
gdb/gdbserver:
2016-09-15 Yao Qi <yao.qi@linaro.org>
* linux-low.c (linux_supports_agent): Return true if
can_software_single_step return true.
---
gdb/gdbserver/linux-low.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 25dd60c..56178c5 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -6447,6 +6447,8 @@ linux_supports_agent (void)
static int
linux_supports_range_stepping (void)
{
+ if (can_software_single_step ())
+ return 1;
if (*the_low_target.supports_range_stepping == NULL)
return 0;
--
1.9.1
next prev parent reply other threads:[~2016-09-26 2:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-26 2:25 [PATCH 0/3] Support range stepping on software single-step target Yao Qi
2016-09-26 2:25 ` [PATCH 2/3] Get pending events in random Yao Qi
2016-09-26 2:25 ` Yao Qi [this message]
2016-09-26 2:47 ` [PATCH 1/3] Remove single-step breakpoint for GDBserver internal event Yao Qi
2016-10-26 17:45 ` Pedro Alves
2016-10-26 20:14 ` Yao Qi
2016-10-27 13:16 ` Pedro Alves
2016-10-27 14:14 ` Yao Qi
2016-10-27 14:14 ` Pedro Alves
2016-10-10 8:43 ` [PATCH 0/3] Support range stepping on software single-step target Yao Qi
2016-10-26 15:39 ` Yao Qi
2016-10-26 17:34 ` Antoine Tremblay
2016-10-27 15:07 ` Yao Qi
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=1474856716-5913-4-git-send-email-yao.qi@linaro.org \
--to=qiyaoltc@gmail.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