This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix gdb.mi/mi-nsmoribund.exp timeouts (Re: [PATCH] Cleanup num_found usage in gdb_wait_for_event)
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Fri, 15 May 2015 16:33:00 +0100
- Subject: Re: [PATCH] Fix gdb.mi/mi-nsmoribund.exp timeouts (Re: [PATCH] Cleanup num_found usage in gdb_wait_for_event)
- Authentication-results: sourceware.org; auth=none
- References: <1430331569-17144-1-git-send-email-simon dot marchi at ericsson dot com> <55412EB9 dot 7020206 at redhat dot com> <554133B8 dot 5020004 at ericsson dot com> <554A5375 dot 4040405 at redhat dot com>
On 05/06/2015 06:46 PM, Pedro Alves wrote:
> gdb/ChangeLog:
> 2015-05-06 Pedro Alves <palves@redhat.com>
> Simon Marchi <simon.marchi@ericsson.com>
>
> * event-loop.c (gdb_notifier) <next_file_handler,
> next_poll_fds_index>: New fields.
> (get_next_file_handler_to_handle_and_advance): New function.
> (delete_file_handler): If deleting the next file handler to
> handle, advance to the next file handler.
> (gdb_wait_for_event): Bail early if no event fired. Poll file
> handlers in round-robin fashion.
I pushed this in now.
Thanks,
Pedro Alves