HP-UX 11i Version 1.5 Release Notes, September 2001
Programming
New Unwind Library
Chapter 7106
New Unwind Library
HP-UX 11i Version 1.5 (B.11.20) includes a procedure call stack unwind
support library, libunwind (also accessible by linking to libcl). With
the new library, you need not link to a large library which contains
unrelated support such as Pascal Try/Recover, Fortran IO, and Packed
Decimal support to use the unwind functions. Changes to the library
include:
• interface improvements to encapsulate data structures which are
sensitive to changes in the architecture
• removal of COBOL Packed Decimal and Pascal language support
features
• separation from Fortran IO support features (Fortran IO support will
be delivered in a separate shared library)
• newly added unwind.h header file located in
/usr/include/unwind.h
• fully supports the C++ ABI for Itanium architecture: Exception
Handling, a language independent exception handling support
specification
Unwind Library Interface Improvements
Value get and put functions will be used to read and to modify the
unwind context data structure. This allows the library to properly
encapsulate the data, protecting client code from changes in the
implementation of the unwinder.
Function name, signature, and specification changes: Because the
unwinder is sensitive to the processor architecture and the run-time
architecture, the IPF unwinder will have different entry points than the
PA unwinder. Type
man U_STACK_TRACE
or
man 5 unwind
for unwinder documentation.