This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: backtrace() vs. _Unwind_Backtrace()


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]