[runtime] Use HOST_ defines instead of PLATFORM_ defines. (#5362)
[mono.git] / mono / mini / debugger-agent.h
1 /**
2  * \file
3  */
4
5 #ifndef __MONO_DEBUGGER_AGENT_H__
6 #define __MONO_DEBUGGER_AGENT_H__
7
8 #include "mini.h"
9
10 MONO_API void
11 mono_debugger_agent_parse_options (char *options);
12
13 void
14 mono_debugger_agent_init (void);
15
16 void
17 mono_debugger_agent_breakpoint_hit (void *sigctx);
18
19 void
20 mono_debugger_agent_single_step_event (void *sigctx);
21
22 void
23 debugger_agent_single_step_from_context (MonoContext *ctx);
24
25 void
26 debugger_agent_breakpoint_from_context (MonoContext *ctx);
27
28 void
29 mono_debugger_agent_free_domain_info (MonoDomain *domain);
30
31 #if defined(HOST_ANDROID) || defined(TARGET_ANDROID)
32 void
33 mono_debugger_agent_unhandled_exception (MonoException *exc);
34 #endif
35
36 void
37 mono_debugger_agent_handle_exception (MonoException *ext, MonoContext *throw_ctx, MonoContext *catch_ctx);
38
39 void
40 mono_debugger_agent_begin_exception_filter (MonoException *exc, MonoContext *ctx, MonoContext *orig_ctx);
41
42 void
43 mono_debugger_agent_end_exception_filter (MonoException *exc, MonoContext *ctx, MonoContext *orig_ctx);
44
45 void
46 mono_debugger_agent_user_break (void);
47
48 void
49 mono_debugger_agent_debug_log (int level, MonoString *category, MonoString *message);
50
51 gboolean
52 mono_debugger_agent_debug_log_is_enabled (void);
53
54 MONO_API gboolean
55 mono_debugger_agent_transport_handshake (void);
56
57 #endif