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:
parent
8934261877
commit
c38058942e
2 changed files with 7 additions and 0 deletions
|
@ -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>
|
2016-10-27 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
* inferiors.c (find_inferior_in_random): New function.
|
* inferiors.c (find_inferior_in_random): New function.
|
||||||
|
|
|
@ -6519,6 +6519,8 @@ linux_supports_agent (void)
|
||||||
static int
|
static int
|
||||||
linux_supports_range_stepping (void)
|
linux_supports_range_stepping (void)
|
||||||
{
|
{
|
||||||
|
if (can_software_single_step ())
|
||||||
|
return 1;
|
||||||
if (*the_low_target.supports_range_stepping == NULL)
|
if (*the_low_target.supports_range_stepping == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue