2 * This is a private header file.
3 * The API in here is undocumented and may only be used by the JIT to
4 * communicate with the debugger.
7 #ifndef __MONO_DEBUG_DEBUGGER_H__
8 #define __MONO_DEBUG_DEBUGGER_H__
11 #include <mono/metadata/debug-helpers.h>
12 #include <mono/metadata/debug-mono-symfile.h>
13 #include <mono/utils/mono-codeman.h>
14 #include <mono/io-layer/io-layer.h>
17 MONO_DEBUGGER_EVENT_INITIALIZE_MANAGED_CODE = 1,
18 MONO_DEBUGGER_EVENT_ADD_MODULE,
19 MONO_DEBUGGER_EVENT_RELOAD_SYMTABS,
20 MONO_DEBUGGER_EVENT_METHOD_COMPILED,
21 MONO_DEBUGGER_EVENT_JIT_BREAKPOINT,
22 MONO_DEBUGGER_EVENT_INITIALIZE_THREAD_MANAGER,
23 MONO_DEBUGGER_EVENT_ACQUIRE_GLOBAL_THREAD_LOCK,
24 MONO_DEBUGGER_EVENT_RELEASE_GLOBAL_THREAD_LOCK,
25 MONO_DEBUGGER_EVENT_WRAPPER_MAIN,
26 MONO_DEBUGGER_EVENT_MAIN_EXITED,
27 MONO_DEBUGGER_EVENT_UNHANDLED_EXCEPTION,
28 MONO_DEBUGGER_EVENT_THREAD_CREATED,
29 MONO_DEBUGGER_EVENT_THREAD_ABORT,
30 MONO_DEBUGGER_EVENT_THREAD_EXITED,
31 MONO_DEBUGGER_EVENT_THROW_EXCEPTION,
32 MONO_DEBUGGER_EVENT_HANDLE_EXCEPTION,
33 MONO_DEBUGGER_EVENT_REACHED_MAIN,
34 MONO_DEBUGGER_EVENT_FINALIZE_MANAGED_CODE
37 extern void (*mono_debugger_event_handler) (MonoDebuggerEvent event, guint64 data, guint64 arg);
39 void mono_debugger_initialize (gboolean use_debugger);
40 void mono_debugger_cleanup (void);
42 void mono_debugger_lock (void);
43 void mono_debugger_unlock (void);
44 void mono_debugger_event (MonoDebuggerEvent event, guint64 data, guint64 arg);
46 void mono_debugger_add_symbol_file (MonoDebugHandle *handle);
47 void mono_debugger_add_type (MonoDebugHandle *symfile, MonoClass *klass);
49 MonoObject *mono_debugger_runtime_invoke (MonoMethod *method, void *obj,
50 void **params, MonoObject **exc);
52 gboolean mono_debugger_lookup_type (const gchar *type_name);
53 gint32 mono_debugger_lookup_assembly (const gchar *name);
56 mono_vtable_get_static_field_data (MonoVTable *vt);
59 mono_debugger_check_runtime_version (const char *filename);
61 #endif /* __MONO_DEBUG_DEBUGGER_H__ */