[Lldb-commits] [lldb] [lldb-dap] Migrate attach to typed RequestHandler. (PR #137911)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Thu May 1 16:50:36 PDT 2025


================
@@ -675,12 +675,11 @@ lldb::SBTarget DAP::CreateTarget(lldb::SBError &error) {
   // enough information to determine correct arch and platform (or ELF can be
   // omitted at all), so it is good to leave the user an opportunity to specify
   // those. Any of those three can be left empty.
-  auto target = this->debugger.CreateTarget(
-      configuration.program.value_or("").data(),
----------------
ashgti wrote:

`data()` should also return a null terminated value the same as `c_str()`, its just 1 character shorter

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


More information about the lldb-commits mailing list