From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106499 invoked by alias); 15 May 2015 15:33:08 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 106490 invoked by uid 89); 15 May 2015 15:33:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 15 May 2015 15:33:07 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4FFX2ct002332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 May 2015 11:33:02 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4FFX0gw000931; Fri, 15 May 2015 11:33:01 -0400 Message-ID: <555611AC.7030908@redhat.com> Date: Fri, 15 May 2015 15:33:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Simon Marchi , gdb-patches@sourceware.org Subject: Re: [PATCH] Fix gdb.mi/mi-nsmoribund.exp timeouts (Re: [PATCH] Cleanup num_found usage in gdb_wait_for_event) References: <1430331569-17144-1-git-send-email-simon.marchi@ericsson.com> <55412EB9.7020206@redhat.com> <554133B8.5020004@ericsson.com> <554A5375.4040405@redhat.com> In-Reply-To: <554A5375.4040405@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-05/txt/msg00391.txt.bz2 On 05/06/2015 06:46 PM, Pedro Alves wrote: > gdb/ChangeLog: > 2015-05-06 Pedro Alves > Simon Marchi > > * event-loop.c (gdb_notifier) 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