On 2 Dec 2016, at 08:12, Mark Millard <[email protected]> wrote: > > [Reminder of my context: these amd64 efforts are really > trying to make sure that I interpret powerpc family behavior > correctly for C++ exception handling. Still it may be that > there are other useful side-effects of my investigations.]
There are two complexities in the unwind implementation: the generic unwinder and the language-specific unwinder (the personality function and the associated data in the language-specific data area, along with how it uses these). The C++ implementation is probably the most complicated of all of these (Ada might be more complex, but let’s not go there). The C unwinder, which just implements __attribute__((cleanup)) is very simple in comparison and should give you easier code to debug (though you’ll need something higher up the stack that actually catches the exception, as the unwinder won’t enter a cleanup unless the exception is caught). The Objective-C implementation is somewhere in between the two in terms of complexity. David _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain To unsubscribe, send any mail to "[email protected]"
