backtrace() vs. _Unwind_Backtrace()

Bryce McKinlay bryce@mckinlay.net.nz
Fri Dec 5 02:24:00 GMT 2003


On Dec 5, 2003, at 2:34 PM, David Mosberger wrote:
> While debugging another problem, I noticed that libjava currently
> attempts to use libc's backtrace() function to create a stack trace
> (libjava/gnu/gcj/runtime/natStackTrace.cc). Recently, libgcc got an
> _Unwind_Backtrace() function, which I think should do exactly what's
> needed there (in combination with _Unwind_GetIP()), so I think it
> would make sense to switch to _Unwind_Backtrace() instead.

Hi David,
I have been working on a patch that revamps libgcj's stack tracing, 
using the libgcc unwinder. I should be able to post it this weekend.
One outstanding issue is what to do about Windows, which apparantly 
doesn't use the DWARF unwinder.
Regards
Bryce.


More information about the Java mailing list

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