[lldb][gui] truncate long lines/names if needed
authorLuboš Luňák <l.lunak@centrum.cz>
Mon, 3 Aug 2020 11:44:47 +0000 (13:44 +0200)
committerLuboš Luňák <l.lunak@centrum.cz>
Thu, 6 Aug 2020 06:40:42 +0000 (08:40 +0200)
commitfc0e8fb7874a73277b221e3f940b749cdd0a99d7
tree0e316919fc0d9530ec1fdf23eb9cfd07840eb047
parentf5e6fbac24f198d075a7c4bc0879426e79040bcf
[lldb][gui] truncate long lines/names if needed

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).

Differential Revision: https://reviews.llvm.org/D85123
lldb/source/Core/IOHandlerCursesGUI.cpp
lldb/test/API/commands/gui/viewlarge/Makefile [new file with mode: 0644]
lldb/test/API/commands/gui/viewlarge/TestGuiViewLarge.py [new file with mode: 0644]
lldb/test/API/commands/gui/viewlarge/main.c [new file with mode: 0644]