[Ada] fix lib and tools build

Lutz Donnerhacke lutz@iks-jena.de
Tue Apr 2 00:09:00 GMT 2002


On Sun, Mar 31, 2002 at 12:21:16AM +0100, Florian Weimer wrote:
> Daniel Jacobowitz <drow@mvista.com> writes:
> > What is the functionality provided by libaddr2line, and is there
> > actually anything in it not provided by BFD?
> 
> IIRC, it maps a code address to a source file/line number pair.

Correct.

> > Not that I really want a nominally GCC component to require building
> > BFD...
> 
> There are modified GNAT 3.13p implementations which call the addr2line
> binary available on most GNU/Linux systems.

This is itself only a BFD derivate.

> I'm not sure if this is applicable in the gnatmem context; for symbolic
> tracebacks (the 3.13p application), this tends to break tasking.

It's horribly bad desiged. I rewrote (working, only the Record Subtypes are
missing) the demangeling code for bfd and can call this bfd part from the
gcc. But this is still a bad design. Calling the bfd is necessary, because
the binary has to be reinterpreted by itself. I don't know how to integrate
this selfinspection using an other way. I did not came across a similar task
in the gcc suite.



More information about the Gcc-patches mailing list