[Lldb-commits] [lldb] [lldb-dap] Validate utf8 protocol messages. (PR #181261)

Sergei Druzhkov via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 13 04:59:35 PST 2026


================
@@ -1169,10 +1169,10 @@ void DAP::ConfigureSourceMaps() {
 
   if (!configuration.sourceMap.empty()) {
     for (const auto &kv : configuration.sourceMap) {
-      strm << "\"" << kv.first << "\" \"" << kv.second << "\" ";
+      strm << "\"" << kv.first.str() << "\" \"" << kv.second.str() << "\" ";
----------------
DrSergei wrote:

I see `operator<<` for `String`, so I guess it should work without calling `.str()`

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


More information about the lldb-commits mailing list