Enable range stepping if software single step is supported
authorYao Qi <yao.qi@linaro.org>
Thu, 27 Oct 2016 15:05:06 +0000 (16:05 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 27 Oct 2016 15:05:06 +0000 (16:05 +0100)
If the target can do software single step, it can do range
stepping.

gdb/gdbserver:

2016-10-27  Yao Qi  <yao.qi@linaro.org>

* linux-low.c (linux_supports_agent): Return true if
can_software_single_step return true.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index c6bc016ce819a3fe90572d6d6d5c7e04ebb058c7..f65607a966fa84b33e8daf945fa92f473373a211 100644 (file)
@@ -1,3 +1,8 @@
+2016-10-27  Yao Qi  <yao.qi@linaro.org>
+
+       * linux-low.c (linux_supports_range_stepping): Return true if
+       can_software_single_step return true.
+
 2016-10-27  Yao Qi  <yao.qi@linaro.org>
 
        * inferiors.c (find_inferior_in_random): New function.
index 5dcf376ecf63401e399f63d6ff8fcb4a4fc12fd6..b441ebccce58af4ace57b8df8639b36e5df0cf7c 100644 (file)
@@ -6519,6 +6519,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;