[Lldb-commits] [lldb] [LLDB] Fix type formatting empty c-strings (PR #68924)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 13 10:53:19 PDT 2023


walter-erquinigo wrote:

@bulbazord , ReadCStringFromMemory returns the length of the string, which in the case of empty strings is 0! 
So, this code was wrong since the beginning. The only thing to check is error.Success() and not the size.

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


More information about the lldb-commits mailing list