[Lldb-commits] [lldb] [lldb][Windows] Support TLS variables with PDB (PR #229894)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 8 03:38:51 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")
----------------
charles-zablit wrote:
```suggestion
thread = next((t for t in self.process() if is_second_thread(t)), None)
self.assertIsNotNone(thread, "could not find the fn_static thread")
self.runCmd(f"thread select {thread.GetIndexID()}", "Change thread")
```
This way the test fails here if we can't find the thread.
https://github.com/llvm/llvm-project/pull/229894
More information about the lldb-commits
mailing list