[Lldb-commits] [lldb] [lldb][Windows] Don't synthesise a fake thread name from the executable (PR #199983)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed May 27 07:32:06 PDT 2026
================
@@ -99,17 +99,8 @@ Status NativeThreadWindows::DoResume(lldb::StateType resume_state) {
}
std::string NativeThreadWindows::GetName() {
- if (!m_name.empty())
- return m_name;
-
- // Name is not a property of the Windows thread. Create one with the
- // process's.
- NativeProcessProtocol &process = GetProcess();
- ProcessInstanceInfo process_info;
- if (Host::GetProcessInfo(process.GetID(), process_info)) {
- std::string process_name(process_info.GetName());
- m_name = process_name;
- }
+ // Windows threads only have a name when the inferior calls
+ // SetThreadDescription explicitly.
----------------
DavidSpickett wrote:
Does the set description get shown currently?
I see GetThreadDescription called in TargetThreadWindows::GetName but I can't find a link between the two classes.
https://github.com/llvm/llvm-project/pull/199983
More information about the lldb-commits
mailing list