Merge pull request #986 from ninjarobot/patch-1
[mono.git] / mono / mini / mini-windows.c
index c7ac72cb62df36e1bec0a7b525545ae8e4d29482..46a317c4fc460009c139ed1a4101ec62f986910b 100644 (file)
@@ -38,7 +38,7 @@
 #include <mono/utils/mono-math.h>
 #include <mono/utils/mono-compiler.h>
 #include <mono/utils/mono-counters.h>
-#include <mono/utils/mono-logger.h>
+#include <mono/utils/mono-logger-internal.h>
 #include <mono/utils/mono-mmap.h>
 #include <mono/utils/dtrace.h>
 
@@ -50,6 +50,8 @@
 
 #include "jit-icalls.h"
 
+gboolean mono_win_chained_exception_needs_run;
+
 void
 mono_runtime_install_handlers (void)
 {
@@ -71,10 +73,18 @@ mono_runtime_cleanup_handlers (void)
 #endif
 }
 
+
+/* mono_chain_signal:
+ *
+ *   Call the original signal handler for the signal given by the arguments, which
+ * should be the same as for a signal handler. Returns TRUE if the original handler
+ * was called, false otherwise.
+ */
 gboolean
 SIG_HANDLER_SIGNATURE (mono_chain_signal)
 {
-       return FALSE;
+       mono_win_chained_exception_needs_run = TRUE;
+       return TRUE;
 }
 
 static HANDLE win32_main_thread;
@@ -124,3 +134,11 @@ void
 mono_runtime_shutdown_stat_profiler (void)
 {
 }
+
+gboolean
+mono_thread_state_init_from_handle (MonoThreadUnwindState *tctx, MonoNativeThreadId thread_id, MonoNativeThreadHandle thread_handle)
+{
+       g_error ("Windows systems haven't been ported to support mono_thread_state_init_from_handle");
+       return FALSE;
+}
+