[Lldb-commits] [lldb] Fix the lldb-dap error when empty source map is specified (PR #137722)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 29 10:54:00 PDT 2025
================
@@ -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
More information about the lldb-commits
mailing list