[Lldb-commits] [lldb] Fix flake in TestZerothFrame.py (PR #96685)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 25 14:16:49 PDT 2024


https://github.com/bulbazord requested changes to this pull request.

Instead of assuming the thread's index or index ID, it might be a good idea to have a little helper method that can look through the inferior's threads to find the thread with the property that we care about. In this case, we're looking for the thread that's stopped in a specific module (`a.out` in this case).

Concurrency and thread order is not guaranteed to be stable, even if in practice they end up being that way on some platforms. The less we can rely on specific indices or IDs that "should" be correct, the better.

https://github.com/llvm/llvm-project/pull/96685


More information about the lldb-commits mailing list