[Lldb-commits] [lldb] [lldb-dap] Fix raciness in launch and attach tests (PR #137920)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu May 1 12:28:10 PDT 2025


JDevlieghere wrote:

> Is it possible to do the launching and attaching in asynchronous mode so that the stop events are always emitted?

Yes, that's the alternative I mentioned the PR description: 

> An alternative approach could be to stop trying to hide the initial stop event, and instead report it to the client unconditionally. Instead of ignoring the stop for the asynchronous case, we could send a stop event after we're done handling the synchronous case.

Thought I need to confirm that this would be compliant with the spec. I also think that from a user experience point of view, you probably don't want to see the stop (similar to how LLDB doesn't promote every private stop to a public stop). When attaching, we always stop. For launching, we hide the initial stop unless you requested stop-at-entry. 

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


More information about the lldb-commits mailing list