[Lldb-commits] [PATCH] D122998: use just '#' instead of 'frame #2' in the threads/frame view
Luboš Luňák via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Apr 3 08:53:55 PDT 2022
llunak created this revision.
llunak added a reviewer: clayborg.
llunak added a project: LLDB.
Herald added a subscriber: JDevlieghere.
Herald added a project: All.
llunak requested review of this revision.
Herald added a subscriber: lldb-commits.
Since the threads/frame view is taking only a small part on the right side of the screen, only a part of the function name of each frame is visible. It seems rather wasteful to spell out 'frame' there when it's obvious that it is a frame, it's better to use the space for more of the function name.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122998
Files:
lldb/source/Core/IOHandlerCursesGUI.cpp
lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py
Index: lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py
===================================================================
--- lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py
+++ lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py
@@ -33,7 +33,7 @@
self.child.expect_exact("Threads")
# The thread running thread_start_routine should be expanded.
- self.child.expect_exact("frame #0: break_here")
+ self.child.expect_exact("#0: break_here")
# Exit GUI.
self.child.send(escape_key)
@@ -47,7 +47,7 @@
self.child.expect_exact("Threads")
# The main thread should be expanded.
- self.child.expect("frame #\d+: main")
+ self.child.expect("#\d+: main")
# Quit the GUI
self.child.send(escape_key)
Index: lldb/source/Core/IOHandlerCursesGUI.cpp
===================================================================
--- lldb/source/Core/IOHandlerCursesGUI.cpp
+++ lldb/source/Core/IOHandlerCursesGUI.cpp
@@ -5015,8 +5015,7 @@
public:
FrameTreeDelegate() : TreeDelegate() {
FormatEntity::Parse(
- "frame #${frame.index}: {${function.name}${function.pc-offset}}}",
- m_format);
+ "#${frame.index}: {${function.name}${function.pc-offset}}}", m_format);
}
~FrameTreeDelegate() override = default;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122998.420060.patch
Type: text/x-patch
Size: 1403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220403/d80446b3/attachment-0001.bin>
More information about the lldb-commits
mailing list