| 244 | } |
| 245 | |
| 246 | void WinDebugger::TryGetThreadName(WdThreadInfo* threadInfo) |
| 247 | { |
| 248 | if (threadInfo->mHThread == NULL) |
| 249 | return; |
| 250 | |
| 251 | ImportKernel(); |
| 252 | |
| 253 | PWSTR wStr = NULL; |
| 254 | if (gGetThreadDescription != NULL) |
| 255 | { |
| 256 | gGetThreadDescription(threadInfo->mHThread, &wStr); |
| 257 | if (wStr == NULL) |
| 258 | return; |
| 259 | |
| 260 | threadInfo->mName = UTF8Encode(wStr); |
| 261 | FilterThreadName(threadInfo->mName); |
| 262 | LocalFree(wStr); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | static void CreateFilterName(String& name, DbgType* type) |
| 267 | { |
no test coverage detected