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

Tom Tromey
2019-10-04T22:08:49Z

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

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

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

I have dropped it.

Tom