[Lldb-commits] [lldb] [lldb] Add pc check for thread-step-by-bp algorithms (PR #108504)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 13 03:40:16 PDT 2024


DavidSpickett wrote:

> "if a thread stops at a breakpoint site, we set the thread's stop reason to breakpoint-hit, even if the breakpoint hasn't been executed"

What does it look like for a thread to be stopped at a *breakpoint site* but not to have executed the breakpoint?

Is this just a timing thing, if one thread executes the breakpoint and that causes all others to stop, and one of those others happens to be about to execute the same breakpoint?

```
T0:
  nop
  brk << $pc, hit the breakpoint and generated the debug exception

T1:
  nop
  brk << also $pc but didn't execute it yet
```


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


More information about the lldb-commits mailing list