[cxx-abi-dev] __cxa_current_exception_type

Mark Mitchell mark at codesourcery.com
Mon Nov 26 17:25:25 UTC 2001



--On Friday, November 16, 2001 06:41:58 PM +0000 Jason Merrill 
<jason at redhat.com> wrote:

> 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?

I incorporated this patch, with the additional sentences:

  This routine is optional; a conforming ABI implementation need not
  provide it.  However, if it is provided, it shall have the behavior
  specified here.

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the cxx-abi-dev mailing list