aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-10-27 16:05:06 +0100
committerYao Qi <yao.qi@linaro.org>2016-10-27 16:05:06 +0100
commitc38058942ececeb32c381a838a10277ba43be94c (patch)
tree08d1c2b67168d4b043a5944e5ec1d79b1528ce52 /gdb/gdbserver
parent89342618773b64db3e67701c0cd9dd89cdbbc18a (diff)
downloadgdb-c38058942ececeb32c381a838a10277ba43be94c.zip
gdb-c38058942ececeb32c381a838a10277ba43be94c.tar.gz
gdb-c38058942ececeb32c381a838a10277ba43be94c.tar.bz2
Enable range stepping if software single step is supported
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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index c6bc016..f65607a 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
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.
* inferiors.h (find_inferior_in_random): Declare.
* linux-low.c (linux_wait_for_event_filtered): Call
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 5dcf376..b441ebc 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -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;