changeset 1597:761bf823e59e

Fix definition of _Unwind_Action. Thanks to Garrison.
author Christian Kamm <kamm incasoftware de>
date Fri, 18 Dec 2009 18:59:14 +0100
parents 42fc0d955a0d
children 20799faa301d
files runtime/internal/eh.d
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/internal/eh.d	Sun Nov 15 13:22:02 2009 +0000
+++ b/runtime/internal/eh.d	Fri Dec 18 18:59:14 2009 +0100
@@ -54,8 +54,8 @@
     {
         SEARCH_PHASE = 1,
         CLEANUP_PHASE = 2,
-        HANDLER_PHASE = 3,
-        FORCE_UNWIND = 4
+        HANDLER_FRAME = 4,
+        FORCE_UNWIND = 8
     }
 
     alias void* _Unwind_Context_Ptr;
@@ -350,7 +350,7 @@
   if(actions & _Unwind_Action.SEARCH_PHASE)
     return _Unwind_Reason_Code.HANDLER_FOUND;
 
-  else if(actions & _Unwind_Action.HANDLER_PHASE)
+  else if(actions & _Unwind_Action.CLEANUP_PHASE)
   {
     debug(EH_personality) printf("Setting switch value to: %d!\n", switchval);
     _Unwind_SetGR(context, eh_exception_regno, cast(ptrdiff_t)cast(void*)(exception_struct.exception_object));