This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: What to do with info addr and location expressions
- From: Nick Clifton <nickc at redhat dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb at sources dot redhat dot com, binutils at sources dot redhat dot com
- Date: Mon, 21 Jul 2003 20:04:28 +0000
- 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><m3y8ysf81z.fsf@redhat.com> <vt2k7abg3v6.fsf@zenia.home>
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