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

Kendal Harland via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 27 09:59:27 PDT 2024


kendalharland wrote:

> The thread that you care about is stopped at a breakpoint, right? If so, then you can use the lldbutil.get_threads_stopped_at_breakpoint utility to find it...

Thanks, this eventually led to me what I think is the most obvious solution: We can just set the breakpoints in this test while holding onto to the `SBBreakpoint` objects, and then fetch the associated thread from those breakpoints later, and compare the thread's frames' currently line numbers.

Thanks @JDevlieghere and @bulbazord for the additional suggestions!

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


More information about the lldb-commits mailing list