From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27787 invoked by alias); 21 Jul 2003 17:54:13 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27697 invoked from network); 21 Jul 2003 17:54:12 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 21 Jul 2003 17:54:12 -0000 Received: by zenia.home (Postfix, from userid 5433) id 95A5D204F5; Mon, 21 Jul 2003 12:57:01 -0500 (EST) To: Nick Clifton Cc: gdb@sources.redhat.com, binutils@sources.redhat.com Subject: Re: What to do with info addr and location expressions References: <16152.3014.959070.885970@localhost.redhat.com> <20030718153016.GA17382@nevyn.them.org> <3F18175E.30607@redhat.com> From: Jim Blandy Date: Mon, 21 Jul 2003 17:54:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00271.txt.bz2 Nick Clifton writes: > Hi Guys > > > [added binutils: gdb needs a way of printing out dwarf2 location > > expressions] > > > > Why not share the readelf code? Print both the actual expression and > > (for simple cases) an English translation. > > readelf was not written with the intention of being used as a > library. That does not mean however that the expression printing code > could not be moved into a separate file and then compiled in to both > gdb and readelf. > > One thing though - readelf does not, and should not, used the bfd > library. One of its main goals is to provide an alternative to bfd > for parsing and displaying ELF files, so that it can act as a > sanity/bug check. The natural home for such code would be a libdwarf, but we don't have that yet. In the the mean time, could the code live in libiberty, like the demangler?