libunwind & _Unwind_Backtrace

Steve Ellcey sje@cup.hp.com
Tue May 17 23:01:00 GMT 2005


I was looking at building java on IA64 HP-UX and I found that the java
library calls _Unwind_Backtrace().  Now the unwind interface for C++ is
standardized and does not include this routine, apparently this was
added for java but isn't part of any standard.

The reason this affects me is that on IA64 HP-UX we are currently using
the system libunwind and it does not include this routine.  So, to build
java on IA64 HP-UX I have to provide this somehow.  I am looking at
several options and would like some opinions.

Convert g++ (and java) to use the GCC libunwind.  I don't really like
this idea because I think that it is confusing to have two libunwinds
and it could hinder the compatibility objects compiled with GCC and
objects compiled with the system compilers.

Create my own _Unwind_Backtrace routine separate from libunwind.  This
should be possible using the existing system interface to libunwind,
but where would it live then?  Could I put it in the java runtime
library?

Find a way to avoid using _Unwind_Backtrace.  I don't know if this
is possible or not.

Thoughts?

Steve Ellcey
sje@cup.hp.com



More information about the Java mailing list