[Lldb-commits] [lldb] [RFC][lldb-dap] Always stop on enrty for attaching (PR #134339)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 4 10:00:48 PDT 2025
================
@@ -73,9 +73,11 @@ void AttachRequestHandler::operator()(const llvm::json::Object &request) const {
llvm::StringRef core_file = GetString(arguments, "coreFile").value_or("");
const uint64_t timeout_seconds =
GetInteger<uint64_t>(arguments, "timeout").value_or(30);
- dap.stop_at_entry = core_file.empty()
- ? GetBoolean(arguments, "stopOnEntry").value_or(false)
- : true;
+ // Clients like VS Code sends threads request right after receiving
+ // configurationDone reponse where the process might be resuming.
+ // Getting threads list on a running process is not supported by LLDB.
+ // Always stop the process after attaching.
+ dap.stop_at_entry = true;
----------------
youngd007 wrote:
Does this mean that the 'stop on entry' setting of VSCode will now have no effect on LLDB when debugging? The user will have no choice but to stop now?
https://github.com/llvm/llvm-project/pull/134339
More information about the lldb-commits
mailing list