[Lldb-commits] [lldb] [lldb] Support custom LLVM formatting for variables (PR #81196)

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 19 16:19:00 PDT 2024

kastiglione wrote:

I've updated this PR to use llvm formatting instead of printf. For the following reasons:

1. For printf, users would have to know the system's size of the value, eg `%d` vs `%ld` etc
2. Users would have to provide different values for different systems, which limits the use/convenience of such summary strings

Getting the size wrong could be any of undefined behavior, buggy, crashy, insecure.


More information about the lldb-commits mailing list