From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2811 invoked by alias); 11 Mar 2015 14:57:17 -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 2409 invoked by uid 89); 11 Mar 2015 14:57:07 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: hapkido.dreamhost.com Received: from hapkido.dreamhost.com (HELO hapkido.dreamhost.com) (66.33.216.122) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 11 Mar 2015 14:57:07 +0000 Received: from homiemail-a58.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) by hapkido.dreamhost.com (Postfix) with ESMTP id F2136A596A; Wed, 11 Mar 2015 07:57:05 -0700 (PDT) Received: from homiemail-a58.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a58.g.dreamhost.com (Postfix) with ESMTP id 873047D806D; Wed, 11 Mar 2015 07:56:33 -0700 (PDT) Received: from redwood.eagercon.com (c-24-7-16-38.hsd1.ca.comcast.net [24.7.16.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eager@eagerm.com) by homiemail-a58.g.dreamhost.com (Postfix) with ESMTPSA id 485F17D8060; Wed, 11 Mar 2015 07:56:30 -0700 (PDT) Message-ID: <5500579E.50706@eagerm.com> Date: Wed, 11 Mar 2015 14:57:00 -0000 From: Michael Eager User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "gdb-patches@sourceware.org" , binutils , Alan Modra Subject: Re: [PATCH] Support gzip compressed exec and core files in gdb References: <54FF77D6.7010400@eagerm.com> <20150311081454.GK11451@bubble.grove.modra.org> In-Reply-To: <20150311081454.GK11451@bubble.grove.modra.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00297.txt.bz2 On 03/11/15 01:14, Alan Modra wrote: > 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. GDB closes the exec file, then uses BFD to seek (I think when reading syms). BFD then re-opens the file, so it needs the name of the uncompressed file. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077