[3/3] Enable range stepping if software single step is supported
Commit Message
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(+)
@@ -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;