When the string passed to PrintCommandOutput doesn't end with a newline, written will exceed size and result in an lldbassert. After 8e776bb660dda6c51ce7ca6cea641db1f47aa9cf we don't really need written anymore and we can check whether str is empty instead.
Details
Details
Summary
Diff Detail
Diff Detail
Event Timeline
This revision is now accepted and ready to land.May 20 2022, 2:02 PM
Closed by commit rGd252d9231c4a: [lldb] Fix spurious assertion in PrintCommandOutput (authored by JDevlieghere). · Explain WhyMay 20 2022, 2:15 PM
This revision was automatically updated to reflect the committed changes.