backtrace() vs. _Unwind_Backtrace()

david daney ddaney@avtrex.com
Fri Dec 5 05:52: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.


How does your patch compare to sysdep/dwarf2-backtrace.cc ?

I have some improvements to it that I was thinking about posting.

David Daney







More information about the Java mailing list