This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Stack traces, etc.
Tom Tromey writes:
> >>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
>
> Andrew> The Right Way to do it is something like this
> Andrew> _Jv_frame_info *frame = GET_FRAME (n);
> Andrew> void *p = _Unwind_FindEnclosingFunction (frame->addr);
> Andrew> if (p == &interpreterf1
> Andrew> || p == &interpreterf2 ...
>
> >From your post I was under the impression that this information
> wouldn't be available for CNI methods.
True enough; I'm hoping to fix this with -Bsymbolic or something similar.
> Also, how do I write `&interpreterf1'? I think that will get me a
> pointer-to-member-function, which definitely won't be correct.
Ah. Yes. Good point. :-)
> I guess I could write out the mangled form of the symbol...
I think so.
Andrew.