[Lldb-commits] [lldb] [lldb-dap] Create an empty target when the attach program is a process name (PR #233684)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 20 08:49:32 PDT 2026
================
@@ -686,6 +686,14 @@ lldb::SBTarget DAP::CreateTarget(lldb::SBError &error) {
/*add_dependent_modules=*/true, // Add dependent modules.
error);
+ // For an attach, the program may be a process name rather than a file.
+ if (!target.IsValid() && is_attach) {
+ target = this->debugger.CreateTarget(
+ /*filename=*/"", configuration.targetTriple.c_str(),
----------------
ashgti wrote:
If the program field is empty, then `configuration.program.c_str()` should return `""` already, is the above create target failing for some other reason?
https://github.com/llvm/llvm-project/pull/233684
More information about the lldb-commits
mailing list