libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libunwind] Api to access local variable ?


From: Jim Wilson
Subject: Re: [libunwind] Api to access local variable ?
Date: 06 Jun 2003 10:18:53 -0700

The unwinder only has info for restoring registers.

See the C++ ABI for information on how to use the unwinder for exception
handling.
        http://www.codesourcery.com/cxx-abi/
        http://www.codesourcery.com/cxx-abi/abi-eh.html
This ABI is designed for a compiler emitting code.  You need to set up
tables and call special functions.  It may be difficult to do this in a
compiler that emits C code.

Since your target is gcc, it might be easier to emit C code that uses
gcc features.  Gcc has a cleanup function attribute as of two days ago
that can be used for destructors for local variables.  If you need catch
handlers though, you could try emitting C++ code instead of C code.

Jim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]