Kernel: Add a bit more thread info on crash.

This commit is contained in:
Unknown W. Brackets 2020-07-12 21:22:47 -07:00
parent daf0990692
commit 04c15c82c9

View file

@ -1183,7 +1183,8 @@ void __KernelThreadingShutdown() {
}
std::string __KernelThreadingSummary() {
return StringFromFormat("Cur thread: %s", __GetCurrentThread()->GetName());
PSPThread *t = __GetCurrentThread();
return StringFromFormat("Cur thread: %s (attr %08x)", t ? t->GetName() : "(null)", t ? t->nt.attr : 0);
}
const char *__KernelGetThreadName(SceUID threadID)