Without this, sources with long lines or variable names may overwrite panel frames, or even overrun to the following line. There's currently no way to scroll left/right in the views, so that should be added to handle these cases.
This commit includes fixing constness of some Window functions, and also makes PutCStringTruncated() consistent with the added printf-like variant to take the padding as the first argument (can't add it after the format to the printf-like function).
Details
Details
- Reviewers
clayborg - Commits
- rGfc0e8fb7874a: [lldb][gui] truncate long lines/names if needed
Diff Detail
Diff Detail
- Repository
- rLLDB LLDB
Event Timeline
lldb/source/Core/IOHandlerCursesGUI.cpp | ||
---|---|---|
438–450 | Use StreamString?: #include "lldb/Utility/StreamString.h" void PrintfTruncated(int right_pad, const char *format, ...) __attribute__((format(printf, 3, 4))) { va_list args; va_start(args, format); StreamString strm; strm.PrintfVarArg(format, args); va_end(args); PutCStringTruncated(right_pad, strm.GetData()); } |
Use StreamString?: