[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
================
@@ -57,9 +57,8 @@ void BaseRequestHandler::SetSourceMapFromArguments(
"source must be be an array of two-element arrays, "
"each containing a source and replacement path string.\n";
- std::string sourceMapCommand;
- llvm::raw_string_ostream strm(sourceMapCommand);
- strm << "settings set target.source-map ";
+ std::string sourceMapCommandMappings;
+ llvm::raw_string_ostream strm(sourceMapCommandMappings);
----------------
JDevlieghere wrote:
```suggestion
std::string source_map_command_mappings;
llvm::raw_string_ostream strm(source_map_command_mappings);
```
https://github.com/llvm/llvm-project/pull/137722
More information about the lldb-commits
mailing list