[lldb] Make char[N] formatters respect the end of the array (PR44649)
authorPavel Labath <pavel@labath.sk>
Fri, 8 Oct 2021 11:14:33 +0000 (13:14 +0200)
committerPavel Labath <pavel@labath.sk>
Mon, 11 Oct 2021 10:47:11 +0000 (12:47 +0200)
commit8093c2ea574b9f7cbeb6c150f6584446cfd93517
tree9ac6b017f3b798bd1defdde92d4516472524d20e
parent36195d7d80e37063ef7f1fbc6c1970e515bb502c
[lldb] Make char[N] formatters respect the end of the array (PR44649)

I believe this is a more natural behavior, and it also matches what gdb
does.

Differential Revision: https://reviews.llvm.org/D111399
lldb/source/DataFormatters/FormatManager.cpp
lldb/test/API/functionalities/data-formatter/stringprinter/main.cpp