Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2013 17:37:24 +0000 (UTC)
From:      David Chisnall <theraven@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245745 - head/contrib/libcxxrt
Message-ID:  <201301211737.r0LHbOva096104@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: theraven
Date: Mon Jan 21 17:37:23 2013
New Revision: 245745
URL: http://svnweb.freebsd.org/changeset/base/245745

Log:
  Import new fix from libcxxrt.  This fixes the case where you attempt to rethrow
  an exception when you haven't caught one.  This is largely a cosmetic fix, as
  (unless you have a very unusual terminate handler installed) it will print a
  nice error and then abort, rather than just aborting.
  
  MFC after:     7 days

Modified:
  head/contrib/libcxxrt/exception.cc
Directory Properties:
  head/contrib/libcxxrt/   (props changed)

Modified: head/contrib/libcxxrt/exception.cc
==============================================================================
--- head/contrib/libcxxrt/exception.cc	Mon Jan 21 17:32:31 2013	(r245744)
+++ head/contrib/libcxxrt/exception.cc	Mon Jan 21 17:37:23 2013	(r245745)
@@ -801,7 +801,7 @@ extern "C" void __cxa_decrement_exceptio
  */
 extern "C" void __cxa_rethrow()
 {
-	__cxa_thread_info *ti = thread_info_fast();
+	__cxa_thread_info *ti = thread_info();
 	__cxa_eh_globals *globals = &ti->globals;
 	// Note: We don't remove this from the caught list here, because
 	// __cxa_end_catch will be called when we unwind out of the try block.  We



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301211737.r0LHbOva096104>