__cxa_current_exception_type
Jason Merrill
jason at redhat.com
Fri Nov 16 18:41:58 UTC 2001
Since we use type_infos in the exception handling mechanism, it seems
reasonable to allow user code (specifically terminate_handlers) to be able
to get at this information. This is already possible by examining the
contents of __cxa_get_globals, but that requires knowing the layout of
__cxa_eh_globals. It seems to me that it makes sense to provide another
entry point to get just this information. ABI patch and implementation
attached.
It seems reasonable to me to add this even now, since it's a pure
extension; people can add it to their runtimes at their leisure. Thoughts?
Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cet-patch
Type: text/x-patch
Size: 885 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20011116/966c135b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.C
Type: text/x-c++
Size: 411 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20011116/966c135b/attachment-0001.bin>
More information about the cxx-abi-dev
mailing list