kastiglione added a comment.

> An exception to this rule is made for the nul character at the very end of 
> the string.

@labath What do you think of hiding //all// trailing nul characters, not just 
the final one? For example consider:

  char buf[16] = "hello world";
  # v buf
  # (char[16]) buf = "hello world\0\0\0\0"



1. This shows 4 out of 5 nuls, which strikes me as odd
2. None of the nuls hide any further data, so it seems friendly enough to print 
up to the last nul

thanks


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111634/new/

https://reviews.llvm.org/D111634

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
  • [Lldb-commits] [PATCH] D1116... Dave Lee via Phabricator via lldb-commits

Reply via email to