[Lldb-commits] [lldb] r113298 - in /lldb/trunk/source: Commands/ Interpreter/
Caroline Tice
ctice at apple.com
Tue Sep 7 15:38:08 PDT 2010
Author: ctice
Date: Tue Sep 7 17:38:08 2010
New Revision: 113298
URL: http://llvm.org/viewvc/llvm-project?rev=113298&view=rev
Log:
Small help text fixes, to make it more consistent and accurate.
Temporarily remove -l option from 'expr' command (at Sean's request).
Modified:
lldb/trunk/source/Commands/CommandObjectApropos.cpp
lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp
lldb/trunk/source/Commands/CommandObjectCommands.cpp
lldb/trunk/source/Commands/CommandObjectDisassemble.cpp
lldb/trunk/source/Commands/CommandObjectExpression.cpp
lldb/trunk/source/Commands/CommandObjectExpression.h
lldb/trunk/source/Commands/CommandObjectFile.cpp
lldb/trunk/source/Commands/CommandObjectHelp.cpp
lldb/trunk/source/Commands/CommandObjectImage.cpp
lldb/trunk/source/Commands/CommandObjectMemory.cpp
lldb/trunk/source/Commands/CommandObjectQuit.cpp
lldb/trunk/source/Commands/CommandObjectRegister.cpp
lldb/trunk/source/Commands/CommandObjectSource.cpp
lldb/trunk/source/Commands/CommandObjectThread.cpp
lldb/trunk/source/Interpreter/CommandInterpreter.cpp
lldb/trunk/source/Interpreter/CommandObjectScript.cpp
Modified: lldb/trunk/source/Commands/CommandObjectApropos.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectApropos.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectApropos.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectApropos.cpp Tue Sep 7 17:38:08 2010
@@ -28,7 +28,7 @@
CommandObjectApropos::CommandObjectApropos () :
CommandObject ("apropos",
- "Finds a list of debugger commands related to a particular word/subject.",
+ "Find a list of debugger commands related to a particular word/subject.",
"apropos <search-word>")
{
}
Modified: lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp Tue Sep 7 17:38:08 2010
@@ -504,7 +504,7 @@
CommandObjectMultiwordBreakpoint::CommandObjectMultiwordBreakpoint (CommandInterpreter &interpreter) :
CommandObjectMultiword ("breakpoint",
- "A set of commands for operating on breakpoints.",
+ "A set of commands for operating on breakpoints. Also see regexp-break.",
"breakpoint <command> [<command-options>]")
{
bool status;
Modified: lldb/trunk/source/Commands/CommandObjectCommands.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectCommands.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectCommands.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectCommands.cpp Tue Sep 7 17:38:08 2010
@@ -424,7 +424,7 @@
CommandObjectMultiwordCommands::CommandObjectMultiwordCommands (CommandInterpreter &interpreter) :
CommandObjectMultiword ("commands",
- "Commands for managing the command interpreters commands",
+ "A set of commands for managing or customizing the debugger commands.",
"commands <subcommand> [<subcommand-options>]")
{
LoadSubCommand (interpreter, "source", CommandObjectSP (new CommandObjectCommandsSource ()));
Modified: lldb/trunk/source/Commands/CommandObjectDisassemble.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectDisassemble.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectDisassemble.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectDisassemble.cpp Tue Sep 7 17:38:08 2010
@@ -143,7 +143,7 @@
CommandObjectDisassemble::CommandObjectDisassemble () :
CommandObject ("disassemble",
- "Disassemble bytes in the current function or anywhere in the inferior program.",
+ "Disassemble bytes in the current function, or elsewhere in the executable program as specified by the user.",
"disassemble [<cmd-options>]")
{
}
Modified: lldb/trunk/source/Commands/CommandObjectExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectExpression.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectExpression.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectExpression.cpp Tue Sep 7 17:38:08 2010
@@ -55,12 +55,12 @@
switch (short_option)
{
- case 'l':
- if (language.SetLanguageFromCString (option_arg) == false)
- {
- error.SetErrorStringWithFormat("Invalid language option argument '%s'.\n", option_arg);
- }
- break;
+ //case 'l':
+ //if (language.SetLanguageFromCString (option_arg) == false)
+ //{
+ // error.SetErrorStringWithFormat("Invalid language option argument '%s'.\n", option_arg);
+ //}
+ //break;
case 'g':
debug = true;
@@ -82,7 +82,7 @@
CommandObjectExpression::CommandOptions::ResetOptionValues ()
{
Options::ResetOptionValues();
- language.Clear();
+ //language.Clear();
debug = false;
format = eFormatDefault;
show_types = true;
@@ -98,7 +98,7 @@
CommandObjectExpression::CommandObjectExpression () :
CommandObject (
"expression",
- "Evaluate a C expression in the current program context, using variables currently in scope.",
+ "Evaluate an Objective-C++ expression in the current program context, using variables currently in scope.",
"expression [<cmd-options>] <expr>"),
m_expr_line_count (0),
m_expr_lines ()
@@ -347,7 +347,7 @@
lldb::OptionDefinition
CommandObjectExpression::CommandOptions::g_option_table[] =
{
-{ LLDB_OPT_SET_ALL, false, "language", 'l', required_argument, NULL, 0, "[c|c++|objc|objc++]", "Sets the language to use when parsing the expression."},
+ //{ LLDB_OPT_SET_ALL, false, "language", 'l', required_argument, NULL, 0, "[c|c++|objc|objc++]", "Sets the language to use when parsing the expression."},
{ LLDB_OPT_SET_ALL, false, "format", 'f', required_argument, NULL, 0, "[ [bool|b] | [bin] | [char|c] | [oct|o] | [dec|i|d|u] | [hex|x] | [float|f] | [cstr|s] ]", "Specify the format that the expression output should use."},
{ LLDB_OPT_SET_ALL, false, "debug", 'g', no_argument, NULL, 0, NULL, "Enable verbose debug logging of the expression parsing and evaluation."},
{ LLDB_OPT_SET_ALL, false, "use-ir", 'i', no_argument, NULL, 0, NULL, "[Temporary] Instructs the expression evaluator to use IR instead of ASTs."},
Modified: lldb/trunk/source/Commands/CommandObjectExpression.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectExpression.h?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectExpression.h (original)
+++ lldb/trunk/source/Commands/CommandObjectExpression.h Tue Sep 7 17:38:08 2010
@@ -46,7 +46,7 @@
// Options table: Required for subclasses of Options.
static lldb::OptionDefinition g_option_table[];
- Language language;
+ //Language language;
lldb::Encoding encoding;
lldb::Format format;
bool debug;
Modified: lldb/trunk/source/Commands/CommandObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectFile.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectFile.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectFile.cpp Tue Sep 7 17:38:08 2010
@@ -87,7 +87,7 @@
CommandObjectFile::CommandObjectFile() :
CommandObject ("file",
- "Sets the file to be used as the main executable by the debugger.",
+ "Set the file to be used as the main executable by the debugger.",
"file [<cmd-options>] <filename>")
{
}
@@ -175,4 +175,4 @@
matches);
return matches.GetSize();
-}
\ No newline at end of file
+}
Modified: lldb/trunk/source/Commands/CommandObjectHelp.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectHelp.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectHelp.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectHelp.cpp Tue Sep 7 17:38:08 2010
@@ -27,7 +27,7 @@
CommandObjectHelp::CommandObjectHelp () :
CommandObject ("help",
- "Shows a list of all debugger commands, or give details about specific commands.",
+ "Show a list of all debugger commands, or give details about specific commands.",
"help [<cmd-name>]")
{
}
Modified: lldb/trunk/source/Commands/CommandObjectImage.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectImage.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectImage.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectImage.cpp Tue Sep 7 17:38:08 2010
@@ -1554,8 +1554,8 @@
//----------------------------------------------------------------------
CommandObjectImage::CommandObjectImage(CommandInterpreter &interpreter) :
CommandObjectMultiword ("image",
- "Access information for one or more executable images.",
- "image [dump|list] ...")
+ "A set of commands for accessing information for one or more executable images.",
+ "image <sub-command> ...")
{
LoadSubCommand (interpreter, "dump", CommandObjectSP (new CommandObjectImageDump (interpreter)));
LoadSubCommand (interpreter, "list", CommandObjectSP (new CommandObjectImageList ()));
Modified: lldb/trunk/source/Commands/CommandObjectMemory.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectMemory.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectMemory.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectMemory.cpp Tue Sep 7 17:38:08 2010
@@ -678,7 +678,7 @@
CommandObjectMemory::CommandObjectMemory (CommandInterpreter &interpreter) :
CommandObjectMultiword ("memory",
- "A set of commands for operating on a memory.",
+ "A set of commands for operating on memory.",
"memory <subcommand> [<subcommand-options>]")
{
LoadSubCommand (interpreter, "read", CommandObjectSP (new CommandObjectMemoryRead ()));
Modified: lldb/trunk/source/Commands/CommandObjectQuit.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectQuit.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectQuit.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectQuit.cpp Tue Sep 7 17:38:08 2010
@@ -24,7 +24,7 @@
//-------------------------------------------------------------------------
CommandObjectQuit::CommandObjectQuit () :
- CommandObject ("quit", "Quits out of the LLDB debugger.", "quit")
+ CommandObject ("quit", "Quit out of the LLDB debugger.", "quit")
{
}
Modified: lldb/trunk/source/Commands/CommandObjectRegister.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectRegister.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectRegister.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectRegister.cpp Tue Sep 7 17:38:08 2010
@@ -220,7 +220,7 @@
//----------------------------------------------------------------------
CommandObjectRegister::CommandObjectRegister(CommandInterpreter &interpreter) :
CommandObjectMultiword ("register",
- "Access thread registers.",
+ "A set of commands to access thread registers.",
"register [read|write] ...")
{
LoadSubCommand (interpreter, "read", CommandObjectSP (new CommandObjectRegisterRead ()));
Modified: lldb/trunk/source/Commands/CommandObjectSource.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectSource.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectSource.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectSource.cpp Tue Sep 7 17:38:08 2010
@@ -575,7 +575,7 @@
CommandObjectMultiwordSource::CommandObjectMultiwordSource (CommandInterpreter &interpreter) :
CommandObjectMultiword ("source",
- "Commands for accessing source file information",
+ "A set of commands for accessing source file information",
"source <subcommand> [<subcommand-options>]")
{
LoadSubCommand (interpreter, "info", CommandObjectSP (new CommandObjectSourceInfo ()));
Modified: lldb/trunk/source/Commands/CommandObjectThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectThread.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectThread.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectThread.cpp Tue Sep 7 17:38:08 2010
@@ -332,7 +332,7 @@
CommandObjectThreadBacktrace () :
CommandObject ("thread backtrace",
- "Shows the stack for one or more threads. If no threads are specified, shows the currently selected thread. \nUse the thread-index \"all\" to see all threads.",
+ "Shows the stack for one or more threads. If no threads are specified, shows the currently selected thread. Use the thread-index \"all\" to see all threads.",
"thread backtrace [<thread-index>] ...",
eFlagProcessMustBeLaunched | eFlagProcessMustBePaused),
m_options()
@@ -1378,7 +1378,7 @@
CommandObjectMultiwordThread::CommandObjectMultiwordThread (CommandInterpreter &interpreter) :
CommandObjectMultiword ("thread",
- "A set of commands for operating on one or more thread within a running process.",
+ "A set of commands for operating on one or more threads within a running process.",
"thread <subcommand> [<subcommand-options>]")
{
LoadSubCommand (interpreter, "backtrace", CommandObjectSP (new CommandObjectThreadBacktrace ()));
Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Tue Sep 7 17:38:08 2010
@@ -167,7 +167,7 @@
std::auto_ptr<CommandObjectRegexCommand>
break_regex_cmd_ap(new CommandObjectRegexCommand ("regexp-break",
- "Smart breakpoint command (using regular expressions).",
+ "Set a breakpoint using a regular expression to specify the location.",
"regexp-break [<file>:<line>]\nregexp-break [<address>]\nregexp-break <...>", 2));
if (break_regex_cmd_ap.get())
{
Modified: lldb/trunk/source/Interpreter/CommandObjectScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandObjectScript.cpp?rev=113298&r1=113297&r2=113298&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandObjectScript.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandObjectScript.cpp Tue Sep 7 17:38:08 2010
@@ -29,8 +29,8 @@
CommandObjectScript::CommandObjectScript (ScriptLanguage script_lang) :
CommandObject ("script",
- "Passes an expression to the script interpreter for evaluation and returns the results. Drops user into the interactive interpreter if no expressions are given.",
- "script [<script-expressions-for-evaluation>]"),
+ "Pass an expression to the script interpreter for evaluation and return the results. Drop into the interactive interpreter if no expression is given.",
+ "script [<script-expression-for-evaluation>]"),
m_script_lang (script_lang),
m_interpreter_ap ()
{
More information about the lldb-commits
mailing list