[Ada] Removing external addr2line depedency

Florian Weimer fw@deneb.enyo.de
Thu Oct 18 13:25:00 GMT 2001


lutz@iks-jena.de (Lutz Donnerhacke) writes:

> So I decided to rewrite the whole functionality in Ada itself.

Thanks.

> gnatmem still requires addr2line, but seems unrepairable. My suggestion is
> to rewrite this tool completely in perl. The current implementation is ugly
> and errorprone due to a hard coded parser of gdb output. It might be
> possible to reimplement it using the spitbol package, but I find this a
> really bad idea.

A few months ago, I was told that the gnatmem facility has been
reimplemented completely.  A few files in this direction have been
committed to the GCC CVS, but I've not checked if gnatmem is indeed
obsolete, or if it is still necessary.

BTW: I wrote a prototype for a replacement for gnatmem which supports
call stack traces with higher depth than one but requires GNU libc.
It runs much, much faster than the old gnatmem tool and is completely
task safe (at least when using the GNAT run-time during the time it
was written).  To be honest, I managed to run gnatmem successfully
only on extremely trivial programs.



More information about the Gcc-patches mailing list