# HG changeset patch # User Christian Kamm # Date 1261159154 -3600 # Node ID 761bf823e59ebe8ff27e0fa2f9d725554e14cf74 # Parent 42fc0d955a0d72794c797b35e9f49bb2d2b2cadb Fix definition of _Unwind_Action. Thanks to Garrison. diff -r 42fc0d955a0d -r 761bf823e59e runtime/internal/eh.d --- 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));