From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87724 invoked by alias); 11 Mar 2015 08:15:03 -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 87694 invoked by uid 89); 11 Mar 2015 08:15:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-pa0-f42.google.com Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 11 Mar 2015 08:15:02 +0000 Received: by pablj1 with SMTP id lj1so9423428pab.10; Wed, 11 Mar 2015 01:15:00 -0700 (PDT) X-Received: by 10.70.119.3 with SMTP id kq3mr75799141pdb.85.1426061700215; Wed, 11 Mar 2015 01:15:00 -0700 (PDT) Received: from bubble.grove.modra.org ([58.160.155.134]) by mx.google.com with ESMTPSA id qo4sm4671135pab.33.2015.03.11.01.14.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 01:14:59 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 758E2EA0150; Wed, 11 Mar 2015 18:44:54 +1030 (ACDT) Date: Wed, 11 Mar 2015 08:15:00 -0000 From: Alan Modra To: Michael Eager Cc: "gdb-patches@sourceware.org" , binutils Subject: Re: [PATCH] Support gzip compressed exec and core files in gdb Message-ID: <20150311081454.GK11451@bubble.grove.modra.org> Mail-Followup-To: Michael Eager , "gdb-patches@sourceware.org" , binutils References: <54FF77D6.7010400@eagerm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54FF77D6.7010400@eagerm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-03/txt/msg00270.txt.bz2 On Tue, Mar 10, 2015 at 04:01:42PM -0700, Michael Eager wrote: > This operation cannot be done completely by BFD because BFD allows an opened > file to be passed to it for processing. GDB uses this functionality. I'd prefer you do this entirely outside of BFD, without adding another field to struct bfd. I think that can be done by simply clearing abfd->cacheable on files you uncompress. This prevents BFD from closing the file, so you won't need to open it again. -- Alan Modra Australia Development Lab, IBM