Ady, Libunwind has support for dynamically generated code for ia64 (see tests/Gtest-dyn1.c for an example). I don't think the equivalent has been implemented for DWARF yet, which is what would be needed for x86 and x86-64.
--david On Mon, Oct 27, 2008 at 3:50 AM, Tal, Ady <[EMAIL PROTECTED]> wrote: > Hi, > > I'm developing a library that dynamically creates code that calls to a C/C++ > routines. > Latter the application calls my dynamic code (the functions that I created). > When there is a C++ exception in the chain of calls it doesn't pass the > stack frame created by my functions. > > Is there a way to make it work (i.e. to allow C++ exception to unwind stack > frame generated by a dynamic code)? > More specifically: > > Can we generate the code / stack frame in a way that will allow the > exception to pass? > Do we need to generate unwind info and register it? > Is there an API to generate the unwind info without needing to create all > the bits manually? > > > I don't have control on the caller to my code nor on the function called by > my code (it is usually a parameter). > I would like it to work on Linux on IA32 and AMD64 (IA64 is of less > important but will be nice to have too). > Can it work with different versions of GCC and libstdc++? > > Thanks, > Ady. > > > --------------------------------------------------------------------- > Intel Israel (74) Limited > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or distribution > by others is strictly prohibited. If you are not the intended > recipient, please contact the sender and delete all copies. > -- Mosberger Consulting LLC, http://www.mosberger-consulting.com/ _______________________________________________ Libunwind-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/libunwind-devel
