[Lldb-commits] [lldb] [lldb] Trim and show embedded zeros in `charN_t` arrays (PR #195514)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed May 6 22:50:40 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);
+ }
----------------
labath wrote:
Ah, I see now.
Let's just update the comment in this patch.
I don't know if the comment is true either, but if you suspect it isn't, I would encourage you to try to remove it -- but let's do that as a separate patch.
https://github.com/llvm/llvm-project/pull/195514
More information about the lldb-commits
mailing list