2 * This is a private header file for the debugger.
5 #ifndef __DEBUG_DEBUGGER_H__
6 #define __DEBUG_DEBUGGER_H__
8 #if !defined _IN_THE_MONO_DEBUGGER
9 #error "<debug-debugger.h> is a private header file only intended to be used by the debugger."
12 #include <mono/metadata/class-internals.h>
13 #include <mono/metadata/mono-debug-debugger.h>
15 typedef struct _MonoDebuggerInfo MonoDebuggerInfo;
16 typedef struct _MonoDebuggerMetadataInfo MonoDebuggerMetadataInfo;
19 * Address of the x86 trampoline code. This is used by the debugger to check
20 * whether a method is a trampoline.
22 extern guint8 *mono_trampoline_code [];
25 * There's a global data symbol called `MONO_DEBUGGER__debugger_info' which
26 * contains pointers to global variables and functions which must be accessed
29 struct _MonoDebuggerInfo {
33 guint32 symbol_table_size;
35 gpointer notification_function;
36 guint8 ***mono_trampoline_code;
37 MonoSymbolTable **symbol_table;
38 MonoDebuggerMetadataInfo *metadata_info;
39 guint64 (*compile_method) (guint64 method_argument);
40 guint64 (*get_virtual_method) (guint64 object_argument, guint64 method_argument);
41 guint64 (*get_boxed_object_method) (guint64 klass_argument, guint64 val_argument);
42 guint64 (*insert_breakpoint) (guint64 method_argument, const gchar *string_argument);
43 guint64 (*remove_breakpoint) (guint64 breakpoint);
44 MonoInvokeFunc runtime_invoke;
45 guint64 (*create_string) (guint64 dummy_argument, const gchar *string_argument);
46 guint64 (*class_get_static_field_data) (guint64 klass);
47 guint64 (*lookup_class) (guint64 image_argument, guint64 token_arg);
48 guint64 (*lookup_type) (guint64 dummy_argument, const gchar *string_argument);
49 guint64 (*lookup_assembly) (guint64 dummy_argument, const gchar *string_argument);
50 guint64 (*run_finally) (guint64 argument1, guint64 argument2);
51 guint64 (*get_thread_id) (void);
52 void (*attach) (void);
53 void (*initialize) (void);
56 struct _MonoDebuggerMetadataInfo {
58 int mono_defaults_size;
59 MonoDefaults *mono_defaults;
63 int klass_instance_size_offset;
64 int klass_parent_offset;
65 int klass_token_offset;
66 int klass_field_offset;
67 int klass_methods_offset;
68 int klass_method_count_offset;
69 int klass_this_arg_offset;
70 int klass_byval_arg_offset;
71 int klass_generic_class_offset;
72 int klass_generic_container_offset;