Issue 97331
Summary [lldb] Summary string parsing error for strings with bitfield syntax
Labels new issue
Assignees
Reporter wardw
    On update from lldb 16 to 18 I observe that summary strings that include the documented bitfield syntax no longer parse, reporting _"error: summary string parsing error"_ instead.

Taking the example directly from the [documentation](https://lldb.llvm.org/use/variable.html#bitfields-and-array-syntax), and a vanilla instance of `lldb`

    > lldb --no-lldbinit
    >> expr 1234.f           # Prints OK
    (float) $0 = 1234      
    >> type summary add --summary-string "Sign: ${var[31]%B} Exponent: ${var[30-23]%x} Mantissa: ${var[0-22]%u}" float
    >> expr 1234.f
 (float) $1 = 1234 error: summary string parsing error

This was working fine with lldb 16.  The above was tested with lldb version 18.1.6 packaged for Fedora 40.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to