[Lldb-commits] [lldb] [lldb] Trim and show embedded zeros in `charN_t` arrays (PR #195514)

via lldb-commits lldb-commits at lists.llvm.org
Thu May 7 03:15:15 PDT 2026


================
@@ -479,9 +494,10 @@ static bool ReadEncodedBufferAndDumpToStream(
                     target_sp->GetArchitecture().GetAddressByteSize()));
   dump_options.SetSourceSize(sourceSize);
   dump_options.SetIsTruncated(is_truncated);
-  dump_options.SetNeedsZeroTermination(needs_zero_terminator);
-  if (needs_zero_terminator)
-    dump_options.SetBinaryZeroIsTerminator(true);
+  if (needs_zero_terminator) {
+    dump_options.SetZeroTermination(
+        StringPrinter::ZeroTermination::ZeroTerminate);
+  }
----------------
Nerixyz wrote:

Fixed the comment here: [`520c4a9` (this PR)](https://github.com/llvm/llvm-project/pull/195514/commits/520c4a926c30fd4d899304defd31f5b88a18a439)

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


More information about the lldb-commits mailing list