[freenet-tech] Technology / Features
Andrew Haley
aph@cambridge.redhat.com
Fri Mar 1 00:31:00 GMT 2002
Jeff Sturm writes:
> On 28 Feb 2002, Adam Megacz wrote:
> > Interestingly, why does gcj use DWARF2 info to generate stack traces
> > on Linux instead of just doing this?
>
> It doesn't. It uses the backtrace function from glibc.
>
> However backtrace doesn't work on a few targets (alpha) where we can't
> walk the stack. For those we could possibly use libunwind, which I
> haven't closely examined yet. And libunwind is based on DWARF2.
DWARF2 is certainly the way to do it, and I expect that glibc will
eventually work that way.
Andrew.
More information about the Java
mailing list