Skip to content

Commit

Permalink
Synchronize changes debugger from the IL2CPP repo
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpeterson committed Feb 12, 2018
1 parent 237c030 commit 71f1c16
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mono/mini/il2cpp-stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,14 @@ void il2cpp_mono_thread_internal_reset_abort(MonoInternalThread* thread)

gunichar2* il2cpp_mono_thread_get_name(MonoInternalThread* this_obj, guint32* name_len)
{
return NULL;
std::string name = il2cpp::vm::Thread::GetName((Il2CppInternalThread*)this_obj);

if (name_len != NULL)
*name_len = name.size();

if (name.empty())
return NULL;
return g_utf8_to_utf16(name.c_str(), name.size(), NULL, NULL, NULL);
}

void il2cpp_mono_thread_set_name_internal(MonoInternalThread* this_obj, MonoString* name, gboolean permanent, gboolean reset, MonoError* error)
Expand Down

0 comments on commit 71f1c16

Please sign in to comment.