From: Yao Qi Date: Thu, 27 Oct 2016 15:05:06 +0000 (+0100) Subject: Enable range stepping if software single step is supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c38058942ececeb32c381a838a10277ba43be94c;p=binutils-gdb.git 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 * linux-low.c (linux_supports_agent): Return true if can_software_single_step return true. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c6bc016ce81..f65607a966f 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2016-10-27 Yao Qi + + * linux-low.c (linux_supports_range_stepping): Return true if + can_software_single_step return true. + 2016-10-27 Yao Qi * inferiors.c (find_inferior_in_random): New function. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 5dcf376ecf6..b441ebccce5 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;