Skip to content

Conversation

@kusmour
Copy link
Contributor

@kusmour kusmour commented Jul 18, 2025

This typo was introduced in PR #140331. This branch will never get executed. We also set the disconnecting = true in the DAP::Disconnect() so I am not sure if we need it in both places.

This typo was introduced in PR llvm#140331. This branch will never get executed. We also set the `disconnecting = true` in the `DAP::Disconnect()` so I am not sure if we need it in both places.
@llvmbot
Copy link
Member

llvmbot commented Jul 18, 2025

@llvm/pr-subscribers-lldb

Author: Wanyi (kusmour)

Changes

This typo was introduced in PR #140331. This branch will never get executed. We also set the disconnecting = true in the DAP::Disconnect() so I am not sure if we need it in both places.


Full diff: https://github.com/llvm/llvm-project/pull/149446.diff

1 Files Affected:

  • (modified) lldb/tools/lldb-dap/DAP.cpp (+1-1)
diff --git a/lldb/tools/lldb-dap/DAP.cpp b/lldb/tools/lldb-dap/DAP.cpp
index fd89f52595ec6..cbd3b14463e25 100644
--- a/lldb/tools/lldb-dap/DAP.cpp
+++ b/lldb/tools/lldb-dap/DAP.cpp
@@ -983,7 +983,7 @@ llvm::Error DAP::Loop() {
 
           if (const protocol::Request *req =
                   std::get_if<protocol::Request>(&*next);
-              req && req->arguments == "disconnect")
+              req && req->command == "disconnect")
             disconnecting = true;
 
           const std::optional<CancelArguments> cancel_args =

@kusmour kusmour merged commit de453e8 into llvm:main Jul 18, 2025
12 checks passed
@kusmour kusmour deleted the lldb-dap-fix-typo branch July 18, 2025 05:14
SquallATF pushed a commit to SquallATF/llvm-project that referenced this pull request Sep 25, 2025
This typo was introduced in PR llvm#140331. This branch will never get
executed. We also set the `disconnecting = true` in the
`DAP::Disconnect()` so I am not sure if we need it in both places.
JDevlieghere pushed a commit to swiftlang/llvm-project that referenced this pull request Oct 8, 2025
This typo was introduced in PR llvm#140331. This branch will never get
executed. We also set the `disconnecting = true` in the
`DAP::Disconnect()` so I am not sure if we need it in both places.

(cherry picked from commit de453e8)
SquallATF pushed a commit to SquallATF/llvm-project that referenced this pull request Oct 22, 2025
This typo was introduced in PR llvm#140331. This branch will never get
executed. We also set the `disconnecting = true` in the
`DAP::Disconnect()` so I am not sure if we need it in both places.
SquallATF pushed a commit to SquallATF/llvm-project that referenced this pull request Nov 6, 2025
This typo was introduced in PR llvm#140331. This branch will never get
executed. We also set the `disconnecting = true` in the
`DAP::Disconnect()` so I am not sure if we need it in both places.
SquallATF pushed a commit to SquallATF/llvm-project that referenced this pull request Nov 19, 2025
This typo was introduced in PR llvm#140331. This branch will never get
executed. We also set the `disconnecting = true` in the
`DAP::Disconnect()` so I am not sure if we need it in both places.
SquallATF pushed a commit to SquallATF/llvm-project that referenced this pull request Dec 4, 2025
This typo was introduced in PR llvm#140331. This branch will never get
executed. We also set the `disconnecting = true` in the
`DAP::Disconnect()` so I am not sure if we need it in both places.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants