X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fmono-debug-debugger.h;h=b8d13b6eec20ed2ced812ec530cd9369879ebcd3;hb=623e43dcd6f28da4e486ea50e4120925039bae34;hp=7d807f5f593d0ceeaad0835d275c9ad401f48c7b;hpb=308fad93359d01fb5bc7d89add4dcfdc3bda25e1;p=mono.git diff --git a/mono/metadata/mono-debug-debugger.h b/mono/metadata/mono-debug-debugger.h index 7d807f5f593..b8d13b6eec2 100644 --- a/mono/metadata/mono-debug-debugger.h +++ b/mono/metadata/mono-debug-debugger.h @@ -7,85 +7,23 @@ #ifndef __MONO_DEBUG_DEBUGGER_H__ #define __MONO_DEBUG_DEBUGGER_H__ -#include #include #include -#include -#include +#include -typedef enum { - MONO_DEBUGGER_EVENT_INITIALIZE_MANAGED_CODE = 1, - MONO_DEBUGGER_EVENT_INITIALIZE_CORLIB, - MONO_DEBUGGER_EVENT_JIT_BREAKPOINT, - MONO_DEBUGGER_EVENT_INITIALIZE_THREAD_MANAGER, - MONO_DEBUGGER_EVENT_ACQUIRE_GLOBAL_THREAD_LOCK, - MONO_DEBUGGER_EVENT_RELEASE_GLOBAL_THREAD_LOCK, - MONO_DEBUGGER_EVENT_WRAPPER_MAIN, - MONO_DEBUGGER_EVENT_MAIN_EXITED, - MONO_DEBUGGER_EVENT_UNHANDLED_EXCEPTION, - MONO_DEBUGGER_EVENT_THROW_EXCEPTION, - MONO_DEBUGGER_EVENT_HANDLE_EXCEPTION, - MONO_DEBUGGER_EVENT_THREAD_CREATED, - MONO_DEBUGGER_EVENT_THREAD_CLEANUP, - MONO_DEBUGGER_EVENT_GC_THREAD_CREATED, - MONO_DEBUGGER_EVENT_GC_THREAD_EXITED, - MONO_DEBUGGER_EVENT_REACHED_MAIN, - MONO_DEBUGGER_EVENT_FINALIZE_MANAGED_CODE, - MONO_DEBUGGER_EVENT_LOAD_MODULE, - MONO_DEBUGGER_EVENT_UNLOAD_MODULE, - MONO_DEBUGGER_EVENT_DOMAIN_CREATE, - MONO_DEBUGGER_EVENT_DOMAIN_UNLOAD, - MONO_DEBUGGER_EVENT_CLASS_INITIALIZED, - MONO_DEBUGGER_EVENT_INTERRUPTION_REQUEST, - MONO_DEBUGGER_EVENT_CREATE_APPDOMAIN, - MONO_DEBUGGER_EVENT_UNLOAD_APPDOMAIN, - /* Obsolete, only for backwards compatibility with older debugger versions */ - MONO_DEBUGGER_EVENT_OLD_TRAMPOLINE = 256, +void mono_debugger_initialize (void) MONO_INTERNAL; - MONO_DEBUGGER_EVENT_TRAMPOLINE = 512 -} MonoDebuggerEvent; +void mono_debugger_lock (void) MONO_INTERNAL; +void mono_debugger_unlock (void) MONO_INTERNAL; -extern volatile gint32 _mono_debugger_interruption_request; +gchar * +mono_debugger_check_runtime_version (const char *filename) MONO_INTERNAL; -extern void (*mono_debugger_event_handler) (MonoDebuggerEvent event, guint64 data, guint64 arg); +MonoDebugMethodAddressList * +mono_debugger_insert_method_breakpoint (MonoMethod *method, guint64 idx) MONO_INTERNAL; -MONO_API void mono_debugger_initialize (void); -MONO_API void mono_debugger_cleanup (void); - -MONO_API void mono_debugger_lock (void); -MONO_API void mono_debugger_unlock (void); -MONO_API void mono_debugger_event (MonoDebuggerEvent event, guint64 data, guint64 arg); - -MONO_API gchar * -mono_debugger_check_runtime_version (const char *filename); - -MONO_API void -mono_debugger_class_initialized (MonoClass *klass); - -MONO_API void -mono_debugger_check_interruption (void); - -MONO_API void -mono_debugger_event_create_appdomain (MonoDomain *domain, gchar *shadow_path); - -MONO_API void -mono_debugger_event_unload_appdomain (MonoDomain *domain); - -MONO_API MonoDebugMethodAddressList * -mono_debugger_insert_method_breakpoint (MonoMethod *method, guint64 idx); - -MONO_API int -mono_debugger_remove_method_breakpoint (guint64 index); - -MONO_API void -mono_debugger_check_breakpoints (MonoMethod *method, MonoDebugMethodAddress *debug_info); - -MONO_API MonoClass * -mono_debugger_register_class_init_callback (MonoImage *image, const gchar *full_name, - guint32 token, guint32 index); - -MONO_API void -mono_debugger_remove_class_init_callback (int index); +int +mono_debugger_remove_method_breakpoint (guint64 index) MONO_INTERNAL; #endif /* __MONO_DEBUG_DEBUGGER_H__ */