Re: [PATCH 2/2] Enable range stepping for ARM on GDBServer

Yao Qi
2016-09-18T19:58:50Z

On Wed, Aug 31, 2016 at 7:39 PM, Pedro Alves <palves@redhat.com> wrote:
> On 08/31/2016 07:15 PM, Antoine Tremblay wrote:
>
> It sounds like gdbserver's event starvation avoidance isn't really
> working on sss targets with range stepping enabled. E.g., are we
> doing the randomization too late?
>

We only randomize the events to be reported to GDB, however, we
don't randomize the pending events. Every time, GDBserver select
pending events from the first one in thread list, threads in the end of
the list are likely starved. This issue can be fixed by introducing pending
events randomization.

My patches are ready, and being regression tested. During the
regression tests, some other issues are found (without my patches), so
I need to take a look at them first.

--
Yao (齐尧)