================
@@ -94,7 +93,9 @@ void BaseRequestHandler::SetSourceMapFromArguments(
     // Do any source remapping needed before we create our targets
     strm << "\".\" \"" << sourcePath << "\"";
   }
-  if (!sourceMapCommand.empty()) {
+  if (!sourceMapCommandMappings.empty()) {
+    std::string sourceMapCommand = "settings set target.source-map ";
+    sourceMapCommand += sourceMapCommandMappings;
----------------
JDevlieghere wrote:

```suggestion
  if (!sourceMapCommandMappings.empty()) {
    dap.RunLLDBCommands("Setting source map:",  llvm::formatv("settings set 
target.source-map {0}", source_map_command_mappings));
```

https://github.com/llvm/llvm-project/pull/137722
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to