svn path=/trunk/mono/; revision=139311
[mono.git] / mono / mini / debug-mini.h
index 975df604bdea26aa925fda2a51e4e3d549b21e4d..5c245e69082d033044212bb563cded3109a54052 100644 (file)
@@ -10,7 +10,7 @@ typedef struct _MonoDebuggerThreadInfo MonoDebuggerThreadInfo;
 extern MonoDebuggerThreadInfo *mono_debugger_thread_table;
 
 void
-mono_debugger_thread_created (gsize tid, MonoThread *thread, MonoJitTlsData *jit_tls);
+mono_debugger_thread_created (gsize tid, MonoThread *thread, MonoJitTlsData *jit_tls, gpointer func);
 
 void
 mono_debugger_thread_cleanup (MonoJitTlsData *jit_tls);
@@ -30,6 +30,22 @@ mono_debugger_handle_exception (MonoContext *ctx, MonoObject *obj);
 MonoObject *
 mono_debugger_runtime_invoke (MonoMethod *method, void *obj, void **params, MonoObject **exc);
 
+/*
+ * Internal exception API.
+ */
+
+typedef enum {
+       MONO_DEBUGGER_EXCEPTION_ACTION_NONE             = 0,
+       MONO_DEBUGGER_EXCEPTION_ACTION_STOP             = 1,
+       MONO_DEBUGGER_EXCEPTION_ACTION_STOP_UNHANDLED   = 2
+} MonoDebuggerExceptionAction;
+
+MonoDebuggerExceptionAction
+_mono_debugger_throw_exception (gpointer addr, gpointer stack, MonoObject *exc);
+
+gboolean
+_mono_debugger_unhandled_exception (gpointer addr, gpointer stack, MonoObject *exc);
+
 /*
  * This is the old breakpoint interface.
  * It isn't used by the debugger anymore, but still when using the `--break' command