Merge pull request #225 from mistoll/master
[mono.git] / mono / mini / jit.h
index b2cbc763c454e8666822ebd6b7b2f36c582984e8..37e871f6a91add58c77550884c56397437feebb3 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <mono/metadata/appdomain.h>
 
-G_BEGIN_DECLS
+MONO_BEGIN_DECLS
 
 MonoDomain * 
 mono_jit_init              (const char *file);
@@ -24,13 +24,38 @@ mono_jit_exec              (MonoDomain *domain, MonoAssembly *assembly,
 void        
 mono_jit_cleanup           (MonoDomain *domain);
 
-gboolean
+mono_bool
 mono_jit_set_trace_options (const char* options);
 
 void
-mono_set_signal_chaining   (gboolean chain_signals);
+mono_set_signal_chaining   (mono_bool chain_signals);
 
-G_END_DECLS
+void
+mono_jit_set_aot_only      (mono_bool aot_only);
+
+/* Allow embedders to decide wherther to actually obey breakpoint instructions
+ * in specific methods (works for both break IL instructions and Debugger.Break ()
+ * method calls).
+ */
+typedef enum {
+       /* the default is to always obey the breakpoint */
+       MONO_BREAK_POLICY_ALWAYS,
+       /* a nop is inserted instead of a breakpoint */
+       MONO_BREAK_POLICY_NEVER,
+       /* the breakpoint is executed only if the program has ben started under
+        * the debugger (that is if a debugger was attached at the time the method
+        * was compiled).
+        */
+       MONO_BREAK_POLICY_ON_DBG
+} MonoBreakPolicy;
+
+typedef MonoBreakPolicy (*MonoBreakPolicyFunc) (MonoMethod *method);
+void mono_set_break_policy (MonoBreakPolicyFunc policy_callback);
+
+void
+mono_jit_parse_options     (int argc, char * argv[]);
+
+MONO_END_DECLS
 
 #endif