[lldb-dev] lldb 11.0.0-rc2 different behavior then gdb.

Pavel Labath via lldb-dev lldb-dev at lists.llvm.org
Wed Oct 7 11:44:43 PDT 2020

On 07/10/2020 20:42, Jim Ingham via lldb-dev wrote:
> There isn’t a built-in summary formatter for two dimensional arrays of 
> chars, but the type is matching the regex for the one-dimensional 
> StringSummaryFormat, but that doesn’t actually know how to format two 
> dimensional arrays of chars.  The type regex for StringSummaryFormat:
> char [[0-9]+]
> We should refine this regex so it doesn’t catch up two dimensional 
> strings.  We could also write a formatter for two-dimensional strings.

Do we need a special formatter for two-dimensional strings? What about 3D?

I'd hope that this could be handled by a combination of the simple 
string formatter and the generic array dumping code...


More information about the lldb-dev mailing list