This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [freenet-tech] Technology / Features
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Adam Megacz <gcj at lists dot megacz dot com>, java at gcc dot gnu dot org
- Date: Fri, 1 Mar 2002 08:30:26 +0000 (GMT)
- Subject: Re: [freenet-tech] Technology / Features
- References: <86g03l5j4t.fsf@megacz.com><Pine.LNX.4.10.10202281848240.30889-100000@mars.deadcafe.org>
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.