Re: [RFC 17/17] Simplify gdbserver's serial event handling

Pedro Alves
2019-09-26T17:36:44Z

On 2/24/19 4:51 PM, Tom Tromey wrote:
> Currently, when gdbserver handles a serial event, it also calls
> 'reschedule' to install a timer that is then used to process any data
> that remains after the previous packet was processed.
>
> It seemed better to me to simply have the file descriptor callback
> loop, processing packets until complete.

I would rather not do this change, because it potentially starves other
event sources. I've had to fix starvation issues like that in several
places in gdb throughout the years -- see url I pointed that justifying
need for async serial events, random_pending_event_thread in
infrun.c, etc.

Thanks,
Pedro Alves