From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17121 invoked by alias); 1 Apr 2008 14:10:20 -0000 Received: (qmail 17112 invoked by uid 22791); 1 Apr 2008 14:10:20 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 01 Apr 2008 14:09:55 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 57A18983BE; Tue, 1 Apr 2008 14:09:54 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 28F5D98119; Tue, 1 Apr 2008 14:09:54 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JghBR-0003wM-Ey; Tue, 01 Apr 2008 10:09:53 -0400 Date: Tue, 01 Apr 2008 14:28:00 -0000 From: Daniel Jacobowitz To: Craig Silverstein Cc: bauerman@br.ibm.com, gdb-patches@sourceware.org Subject: Re: Patch to handle compressed sections Message-ID: <20080401140953.GD12753@caradoc.them.org> Mail-Followup-To: Craig Silverstein , bauerman@br.ibm.com, gdb-patches@sourceware.org References: <20080325230440.BF0623F25D6@localhost> <1206547779.29533.43.camel@localhost.localdomain> <20080326173918.E6D063F25E8@localhost> <20080326180132.GB10127@caradoc.them.org> <20080326183538.346243F25E8@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080326183538.346243F25E8@localhost> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes 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 X-SW-Source: 2008-04/txt/msg00012.txt.bz2 On Wed, Mar 26, 2008 at 11:35:38AM -0700, Craig Silverstein wrote: > } Or in the beginning of .debug_info.zlib? (.zdebug_info?) > > I thought of that too, but again I didn't see much benefit. On the > other hand, there is a cost (albeit small): now you have a "format" > for compressed data, with a header section and data to follow, so you > need to codify and document the header format, and deal with issues > like 4-byte vs 8-byte and endianness, and then you'll probably want a > version, and things just get very complicated. I like the simplicity > of saying the section is just a blob of compressed data. I think we have to do this. It's unfriendly to consumers to have the section have an unpredictable name; pattern matching in GDB is not hard, but e.g. a script which uses -R .debug_info will now need to script readelf -WS to find the name of the compressed section. A magic string ("ZLIB"?) and an 8-byte length should be all the header we need. -- Daniel Jacobowitz CodeSourcery