This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: What to do with info addr and location expressions
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