From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28748 invoked by alias); 21 Jul 2003 20:07:38 -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 28677 invoked from network); 21 Jul 2003 20:07:37 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 21 Jul 2003 20:07:37 -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 h6LK7bH26149; Mon, 21 Jul 2003 16:07:37 -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 h6LK7bI05526; Mon, 21 Jul 2003 16:07:37 -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 h6LK7Hx13738; Mon, 21 Jul 2003 16:07:34 -0400 To: Jim Blandy 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: Nick Clifton Date: Mon, 21 Jul 2003 20:07:00 -0000 In-Reply-To: (Jim Blandy's message of "21 Jul 2003 12:57:01 -0500") 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/msg00273.txt.bz2 Hi Jim, >> 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? I do not think that this is really suitable for libiberty. The simplest method would be to break the code out into a separate file that lives in the binutils/ directory and which could then be compiled into either readelf or gdb. Cheers Nick