Skip to content

Commit e334ffe

Browse files
author
Josh Peterson
committed
Add the Mono version of the common defines used in the debugger
1 parent e8eb145 commit e334ffe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

mono/mini/debugger-agent.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@
77

88
#ifndef RUNTIME_IL2CPP
99
#include "mini.h"
10+
#define VM_DOMAIN_GET_AGENT_INFO(domain) domain_jit_info (domain)->agent_info
11+
#define VM_DOMAIN_SET_AGENT_INFO(domain, value) domain_jit_info (domain)->agent_info = value
12+
#define VM_METHOD_IS_STRING_CTOR(method) method->string_ctor
13+
#define VM_INFLATED_METHOD_GET_DECLARING(imethod) (imethod)->declaring
14+
#define VM_INFLATED_METHOD_GET_CLASS_INST(imethod) (imethod)->context.class_inst
15+
#define VM_OBJECT_GET_DOMAIN(object) ((MonoObject *)object)->vtable->domain
16+
#define VM_OBJECT_GET_TYPE(object) ((MonoReflectionType *)object->vtable->type)->type
17+
#define VM_GENERIC_CLASS_GET_CONTAINER_CLASS(gklass) (gklass)->container_class
18+
#define VM_DEFAULTS_OBJECT_CLASS mono_defaults.object_class
19+
#define VM_DEFAULTS_EXCEPTION_CLASS mono_defaults.exception_class
20+
#define VM_DEFAULTS_CORLIB_IMAGE mono_defaults.corlib
21+
#define VM_DEFAULTS_VOID_CLASS mono_defaults.void_class
22+
#define VM_IMAGE_GET_MODULE_NAME(image) (image)->module_name
1023
#endif
1124

1225
#ifdef RUNTIME_IL2CPP

0 commit comments

Comments
 (0)