Debugging, but it doesn't work for some reason

This commit is contained in:
Simon Lübeß
2023-07-21 16:16:24 +02:00
parent cc7fb7311f
commit 457b43352a
2 changed files with 96 additions and 11 deletions
+32 -1
View File
@@ -11,7 +11,10 @@ static class Mono
[LinkName(.C)]
public static extern MonoDomain* mono_jit_init(char8* file);
[LinkName(.C)]
public static extern void mono_jit_parse_options(int32 argc, char8** argv);
[LinkName(.C)]
public static extern void mono_jit_cleanup(MonoDomain* domain);
@@ -208,6 +211,24 @@ static class Mono
[LinkName(.C)]
public static extern char8* mono_error_get_message(MonoError* error);
[LinkName(.C)]
public static extern void mono_debug_init(DebugFormat debugFormat);
[LinkName(.C)]
public static extern void mono_debug_domain_create(MonoDomain* domain);
[LinkName(.C)]
public static extern void mono_debug_domain_unload(MonoDomain* domain);
[LinkName(.C)]
public static extern void mono_debug_open_image_from_memory(MonoImage *image, uint8* raw_contents, int32 size);
[LinkName(.C)]
public static extern void mono_thread_set_main(MonoThread* thread);
[LinkName(.C)]
public static extern MonoThread* mono_thread_current();
}
struct MonoDomain;
@@ -226,6 +247,8 @@ struct MonoObject;
struct MonoMethod;
struct MonoThread;
struct MonoException
{
void* _bla;
@@ -339,6 +362,14 @@ enum MonoMetaTableEnum : int32
}
enum DebugFormat : uint32
{
None,
Mono,
/** Deprecated, the mdb debugger is not longer supported. */
Debugger
}
enum FieldAttribute
{
FieldAccessMask = 0x0007,