From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3898 invoked by alias); 24 Jul 2015 10:34:09 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 3885 invoked by uid 89); 24 Jul 2015 10:34:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham 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, 24 Jul 2015 10:34:08 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 8AE2EC03EF; Fri, 24 Jul 2015 10:34:07 +0000 (UTC) Received: from blade.nx (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6OAY6mk026126; Fri, 24 Jul 2015 06:34:07 -0400 Received: by blade.nx (Postfix, from userid 1000) id 5B762264ED3; Fri, 24 Jul 2015 11:34:06 +0100 (BST) Date: Fri, 24 Jul 2015 10:34:00 -0000 From: Gary Benson To: Sandra Loosemore Cc: "gdb@sourceware.org" Subject: Re: GDB now takes 4 minutes to start up with remote gdbserver target Message-ID: <20150724103406.GA1653@blade.nx> References: <55B1768E.9090309@codesourcery.com> <55B1A4FC.9010403@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55B1A4FC.9010403@codesourcery.com> X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00043.txt.bz2 Sandra Loosemore wrote: > (4) GDB doesn't respond to ^C during the 4 minutes it is doing > whatever it's doing to transfer files. It just sits there acting > catatonic. Sandra, could you tell me if this patch makes GDB interruptible for you? Thanks, Gary -- diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c index 1781d80..15ea03b 100644 --- a/gdb/gdb_bfd.c +++ b/gdb/gdb_bfd.c @@ -252,6 +252,8 @@ gdb_bfd_iovec_fileio_pread (struct bfd *abfd, void *stream, void *buf, pos = 0; while (nbytes > pos) { + QUIT; + bytes = target_fileio_pread (fd, (gdb_byte *) buf + pos, nbytes - pos, offset + pos, &target_errno);