Skip to content

Commit 7fa476f

Browse files
author
Brian Raderman
committed
Changing the CMD_TYPE_IS_INITIALIZED command for the il2cpp case in
the debugger agent to use the klass instead of the vtable. The local vtable variable in this case points to the actual IL2CPP vtable and will not have the "initialized" bit we are looking for.
1 parent ce99638 commit 7fa476f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mono/mini/debugger-agent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10076,7 +10076,7 @@ type_commands_internal (int command, MonoClass *klass, MonoDomain *domain, guint
1007610076
#ifndef RUNTIME_IL2CPP
1007710077
buffer_add_int (buf, (vtable->initialized || vtable->init_failed) ? 1 : 0);
1007810078
#else
10079-
buffer_add_int (buf, vtable->initialized ? 1 : 0);
10079+
buffer_add_int (buf, klass->initialized ? 1 : 0);
1008010080
#endif
1008110081
else
1008210082
buffer_add_int (buf, 0);

0 commit comments

Comments
 (0)