[Lldb-commits] [PATCH] LLDB Help Improvements
Kate Stone
katherine_stone at apple.com
Tue Jan 13 15:58:53 PST 2015
Three changes to LLDB's help facility:
The default help display now shows the alias collection by default, and hides commands whose named begin with an underscore. Help is primarily useful to those unfamiliar with LLDB and should aim to answer typical questions while still being able to provide more esoteric answers when required. To that latter end an argument to include the hidden commands in help has been added, and instead of having a help flag to show aliases there is now one to hide them. This final change might be controversial as it repurposes the -a shorthand as the opposite of its original meaning.
The previous implementation of OutputFormattedHelpText was easily confused by embedded newlines. The new algorithm correctly breaks on the FIRST newline or LAST space/tab before the target column count rather than treating all whitespace interchangeably.
Command interpreters now have the ability to specify help prologue text and a command prefix string. Neither are used in the current LLDB sources but are required to support REPL-like extensions where LLDB commands must be prefixed and additional help text is required to explain how to access traditional debugging commands.
<rdar://problem/17751929>
<rdar://problem/16953815>
<rdar://problem/16953841>
<rdar://problem/16930173>
<rdar://problem/16879028>
http://reviews.llvm.org/D6959
Files:
include/lldb/Core/Debugger.h
include/lldb/Interpreter/CommandInterpreter.h
source/Commands/CommandObjectHelp.cpp
source/Commands/CommandObjectHelp.h
source/Core/Debugger.cpp
source/Interpreter/CommandInterpreter.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6959.18118.patch
Type: text/x-patch
Size: 15749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150113/fd4f1b88/attachment.bin>
More information about the lldb-commits
mailing list