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.
This commit is contained in:
Yao Qi 2016-10-27 16:05:06 +01:00
parent 8934261877
commit c38058942e
2 changed files with 7 additions and 0 deletions

View 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.

View 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;