[Lldb-commits] [lldb] [lldb-dap] Change the launch sequence (PR #138219)

via lldb-commits lldb-commits at lists.llvm.org
Fri May 2 15:43:13 PDT 2025


================
@@ -591,6 +591,7 @@ def request_attach(
         attachCommands=None,
         terminateCommands=None,
         coreFile=None,
+        stopOnAttach=True,
----------------
kusmour wrote:

Is there any reason we want to make this true by default?
1) Our current tests don't have stopOnEntry by default
2) DAP doesn't have definition about this nor does lldb-dap documentation. So most real life attach case will not have this turned on.
3) I don't think we have lldb-dap test case covering multithreading scenario. But on linux, ptrace will put SIGSTOP on every thread and currently in `SendThreadStoppedEvent(dap)` we will send a `stopped` event for any threads that has the a stop reason, meaning we will actually send N stopped event (N being # of threads) upon attach request with `stopOnAttach` set to true.

Though it's only turned on for tests, I think we should make it false until it become the expected default behavior.

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


More information about the lldb-commits mailing list