[Lldb-commits] [PATCH] D85123: Truncate long lines/names if needed in lldb gui

Luboš Luňák via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 3 04:52:35 PDT 2020


llunak created this revision.
llunak added a reviewer: clayborg.
llunak requested review of this revision.

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


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D85123

Files:
  lldb/source/Core/IOHandlerCursesGUI.cpp
  lldb/test/API/commands/gui/viewlarge/Makefile
  lldb/test/API/commands/gui/viewlarge/TestGuiViewLarge.py
  lldb/test/API/commands/gui/viewlarge/main.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85123.282583.patch
Type: text/x-patch
Size: 10287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200803/7456df26/attachment-0001.bin>


More information about the lldb-commits mailing list