Skip to content

Commit

Permalink
Merge pull request #847 from Unity-Technologies/il2cpp-debbuger-sync
Browse files Browse the repository at this point in the history
Synchronize changes debugger from the IL2CPP repo
  • Loading branch information
joshpeterson authored Feb 13, 2018
2 parents dcb6577 + 71f1c16 commit f0fe112
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 f0fe112

Please sign in to comment.