Skip to content

Commit

Permalink
Changing the CMD_TYPE_IS_INITIALIZED command for the il2cpp case in
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Brian Raderman committed Jan 17, 2018
1 parent ce99638 commit 7fa476f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/mini/debugger-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -10076,7 +10076,7 @@ type_commands_internal (int command, MonoClass *klass, MonoDomain *domain, guint
#ifndef RUNTIME_IL2CPP
buffer_add_int (buf, (vtable->initialized || vtable->init_failed) ? 1 : 0);
#else
buffer_add_int (buf, vtable->initialized ? 1 : 0);
buffer_add_int (buf, klass->initialized ? 1 : 0);
#endif
else
buffer_add_int (buf, 0);
Expand Down

0 comments on commit 7fa476f

Please sign in to comment.