Stack traces, etc.

Andrew Haley aph@redhat.com
Tue Dec 3 08:59:00 GMT 2002


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /