From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112062 invoked by alias); 1 May 2015 17:53:33 -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 112053 invoked by uid 89); 1 May 2015 17:53:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout21.012.net.il Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 May 2015 17:53:31 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NNO00F00MGIR600@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Fri, 01 May 2015 20:53:28 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNO00F1QN13S200@a-mtaout21.012.net.il>; Fri, 01 May 2015 20:53:28 +0300 (IDT) Date: Fri, 01 May 2015 17:53:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Support gzip compressed exec and core files in gdb In-reply-to: <5543905A.1040108@eagerm.com> To: Michael Eager Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83r3r0qj5i.fsf@gnu.org> References: <54FF77D6.7010400@eagerm.com> <5543905A.1040108@eagerm.com> X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00010.txt.bz2 > Date: Fri, 01 May 2015 07:40:26 -0700 > From: Michael Eager > > On 03/10/2015 04:01 PM, Michael Eager wrote: > > Add support to automatically unzip compressed executable and core files. > > Files will be uncompressed into temporary directory (/tmp or $TMPDIR) > > and are deleted when GDB exits. This should be transparent to users, > > except for disk space requirements. The name of the uncompressed file is > > mentioned, but all references to the file in GDB messages is to the file > > which the user specified. > > Attached is a revised patch. I discovered a logic error after refactoring > the code. OK for the documentation parts. > + decomp_fd = mkstemp (template); Do we have mkstemp on all supported platforms? Thanks.