[3/3] Enable range stepping if software single step is supported

Message ID 1474856716-5913-4-git-send-email-yao.qi@linaro.org
State New, archived
Headers

Commit Message

Yao Qi Sept. 26, 2016, 2:25 a.m. UTC
  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(+)
  

Patch

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;