Skip to content

Commit fd3b4ac

Browse files
authored
Merge pull request #10696 from z2oh/cherrypick-release6.1.1-clear-win-thread-name-container
[🍒 release/6.1.1] [lldb] Clear thread name container before writing UTF8 bytes (llvm#134150)
2 parents d7ef528 + fee619f commit fd3b4ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ const char *TargetThreadWindows::GetName() {
191191
if (SUCCEEDED(GetThreadDescription(
192192
m_host_thread.GetNativeThread().GetSystemHandle(), &pszThreadName))) {
193193
LLDB_LOGF(log, "GetThreadDescription: %ls", pszThreadName);
194+
m_name.clear();
194195
llvm::convertUTF16ToUTF8String(
195196
llvm::ArrayRef(reinterpret_cast<char *>(pszThreadName),
196197
wcslen(pszThreadName) * sizeof(wchar_t)),

0 commit comments

Comments
 (0)