Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd3b4ac

Browse filesBrowse 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
Copy full SHA for fd3b4ac

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

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

Copy file name to clipboardExpand all lines: lldb/source/Plugins/Process/Windows/Common/TargetThreadWindows.cpp
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.