[Lldb-commits] [lldb] [lldb] Override Should{Select, Show} in StopReasonBreakpoint (PR #135637)

via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 14 15:35:44 PDT 2025


jimingham wrote:

I'm also not sure how you would test this.  Pretty much all the predictable internal breakpoints that we set get converted to different StopInfo's before the public stop.
At some point it would be nice to add a "testing only" library - like the SB API set but only available while testing.  Then you could add a "SetInternalBreakpoint" API and test what happened when you hit it.
Short of that, I can't see anything that would be stable.
But this is clearly the right behavior.  By the time we get to a public stop, if a thread's stop reason is an internal breakpoint, we don't want to either show that reason, or set that thread as the "currently selected thread". 

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


More information about the lldb-commits mailing list