From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8923 invoked by alias); 21 Jul 2003 11:14:49 -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 8714 invoked from network); 21 Jul 2003 11:14:43 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 21 Jul 2003 11:14:43 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h6LBEhH20251; Mon, 21 Jul 2003 07:14:43 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h6LBEhI09025; Mon, 21 Jul 2003 07:14:43 -0400 Received: from localhost.localdomain.redhat.com (vpnuser6.stuttgart.redhat.com [172.16.4.6]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h6LBEYx32608; Mon, 21 Jul 2003 07:14:41 -0400 To: gdb@sources.redhat.com Cc: 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: Nick Clifton Date: Mon, 21 Jul 2003 11:14:00 -0000 In-Reply-To: <3F18175E.30607@redhat.com> (Andrew Cagney's message of "Fri, 18 Jul 2003 11:50:54 -0400") Message-ID: User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00266.txt.bz2 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. Cheers Nick