[Lldb-commits] [lldb] [lldb][Windows] Support TLS variables with PDB (PR #229894)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 8 11:46:56 PDT 2026
================
@@ -66,7 +71,13 @@ def test(self):
# BUG: sometimes lldb doesn't change threads to the stopped thread.
# (unrelated to this test).
- self.runCmd("thread select 2", "Change thread")
+ is_second_thread = lambda thread: "fn_static" in (
+ thread.GetFrameAtIndex(0).GetFunctionName() or ""
+ )
+ if not is_second_thread(self.thread()):
+ for thread in self.process():
+ if is_second_thread(thread):
+ self.runCmd(f"thread select {thread.GetIndexID()}", "Change thread")
----------------
Nerixyz wrote:
Applied this in [`49e6d83` (this PR)](https://github.com/llvm/llvm-project/pull/229894/commits/49e6d8316fd606ba3d1c696733b8f16a38ce6f2b).
https://github.com/llvm/llvm-project/pull/229894
More information about the lldb-commits
mailing list