This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: where do stack traces get filled in?
Adam Megacz wrote:
>Gotcha. Are backtraces a target-specific thing (which would have to be
>rewritten for win32), or would I be able to do some clever
>cut-and-paste out of glibc? Or is this impossible with SJLJ exceptions?
>
>Well, I guess there's licensing issues with glibc (LGPL vs
>GPL-with-exception); perhaps "review the glibc code, learn how it
>works, and then reimplement the same algorithm".
>
With DWARF2 exceptions at least, it ought to be possible to get the
stack information from the unwinder somehow, but you're right, it
probibly is not possible with SJLJ.
As for running c++filt to demangle symbols, I agree this is nasty/wrong
but we can't link libiberty because it is LGPL. We'd need to write our
own demangler, or figure out some reasonable way to go from a mangled
symbol (or code pointer) to a _Jv_Method.
regards
Bryce.