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

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 30 09:18:36 PDT 2025


ashgti wrote:

We could block the DAP queue until we get the stop event before we send the `initialized` event maybe.

https://github.com/llvm/llvm-project/blob/d7f096e3fe611ae2cc7403c3cf2f88255a47b61d/lldb/tools/lldb-dap/Handler/LaunchRequestHandler.cpp#L70-L77 is where I am thinking we can wait for the stopped event. That may also fix this by preventing us from handling the next DAP request until we get the 'stopped' event, which I think would arrive after the 'module' events are done processing.


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


More information about the lldb-commits mailing list