https://github.com/labath commented:
The string manipulations are fairly crude. I tried to suggest replacements using more advanced features. I'm not sure I got all of the offset calculations right, but I think they demonstrate the general idea, which is: - using existing printf features (e.g. for padding and size limiting) instead of rolling your own - avoiding explicit cursor position tracking by ensuring each block of code always ends at a predefined position. https://github.com/llvm/llvm-project/pull/116456 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits