where do stack traces get filled in?
Andrew Haley
aph@cambridge.redhat.com
Thu Dec 13 01:33:00 GMT 2001
Tom Tromey writes:
> >>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
>
> Adam> I see Throwable.stackTrace, but it never gets created in
> Adam> Throwable.java or natThrowable.cc...
>
> natThrowable.cc defines java::lang::Throwable::fillInStackTrace.
> This does the actual work. It is deceptively short because it relies
> on glibc functionality. (On ia64 we use _Jv_ia64_backtrace in
> sysdep/ia64.c.)
>
> Adam> BTW, that's really bizzarre how printStackTrace spawns a process to
> Adam> run c++filt...
>
> Andrew will have to address that. I forgot why we did it this way.
> Maybe licensing?
Yes. The demangler code is GPLed. If we linked with it, libgcj
itself would need to be GPLed, and we can't do that.
Andrew.
More information about the Java
mailing list