forked from OSchip/llvm-project
Small help text fixes, to make it more consistent and accurate.
Temporarily remove -l option from 'expr' command (at Sean's request). llvm-svn: 113298
This commit is contained in:
parent
88628e9738
commit
3f4c09c1c3
|
@ -28,7 +28,7 @@ using namespace lldb_private;
|
||||||
|
|
||||||
CommandObjectApropos::CommandObjectApropos () :
|
CommandObjectApropos::CommandObjectApropos () :
|
||||||
CommandObject ("apropos",
|
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>")
|
"apropos <search-word>")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -504,7 +504,7 @@ CommandObjectBreakpointSet::Execute
|
||||||
|
|
||||||
CommandObjectMultiwordBreakpoint::CommandObjectMultiwordBreakpoint (CommandInterpreter &interpreter) :
|
CommandObjectMultiwordBreakpoint::CommandObjectMultiwordBreakpoint (CommandInterpreter &interpreter) :
|
||||||
CommandObjectMultiword ("breakpoint",
|
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>]")
|
"breakpoint <command> [<command-options>]")
|
||||||
{
|
{
|
||||||
bool status;
|
bool status;
|
||||||
|
|
|
@ -424,7 +424,7 @@ public:
|
||||||
|
|
||||||
CommandObjectMultiwordCommands::CommandObjectMultiwordCommands (CommandInterpreter &interpreter) :
|
CommandObjectMultiwordCommands::CommandObjectMultiwordCommands (CommandInterpreter &interpreter) :
|
||||||
CommandObjectMultiword ("commands",
|
CommandObjectMultiword ("commands",
|
||||||
"Commands for managing the command interpreters commands",
|
"A set of commands for managing or customizing the debugger commands.",
|
||||||
"commands <subcommand> [<subcommand-options>]")
|
"commands <subcommand> [<subcommand-options>]")
|
||||||
{
|
{
|
||||||
LoadSubCommand (interpreter, "source", CommandObjectSP (new CommandObjectCommandsSource ()));
|
LoadSubCommand (interpreter, "source", CommandObjectSP (new CommandObjectCommandsSource ()));
|
||||||
|
|
|
@ -143,7 +143,7 @@ CommandObjectDisassemble::CommandOptions::g_option_table[] =
|
||||||
|
|
||||||
CommandObjectDisassemble::CommandObjectDisassemble () :
|
CommandObjectDisassemble::CommandObjectDisassemble () :
|
||||||
CommandObject ("disassemble",
|
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>]")
|
"disassemble [<cmd-options>]")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,12 +55,12 @@ CommandObjectExpression::CommandOptions::SetOptionValue (int option_idx, const c
|
||||||
|
|
||||||
switch (short_option)
|
switch (short_option)
|
||||||
{
|
{
|
||||||
case 'l':
|
//case 'l':
|
||||||
if (language.SetLanguageFromCString (option_arg) == false)
|
//if (language.SetLanguageFromCString (option_arg) == false)
|
||||||
{
|
//{
|
||||||
error.SetErrorStringWithFormat("Invalid language option argument '%s'.\n", option_arg);
|
// error.SetErrorStringWithFormat("Invalid language option argument '%s'.\n", option_arg);
|
||||||
}
|
//}
|
||||||
break;
|
//break;
|
||||||
|
|
||||||
case 'g':
|
case 'g':
|
||||||
debug = true;
|
debug = true;
|
||||||
|
@ -82,7 +82,7 @@ void
|
||||||
CommandObjectExpression::CommandOptions::ResetOptionValues ()
|
CommandObjectExpression::CommandOptions::ResetOptionValues ()
|
||||||
{
|
{
|
||||||
Options::ResetOptionValues();
|
Options::ResetOptionValues();
|
||||||
language.Clear();
|
//language.Clear();
|
||||||
debug = false;
|
debug = false;
|
||||||
format = eFormatDefault;
|
format = eFormatDefault;
|
||||||
show_types = true;
|
show_types = true;
|
||||||
|
@ -98,7 +98,7 @@ CommandObjectExpression::CommandOptions::GetDefinitions ()
|
||||||
CommandObjectExpression::CommandObjectExpression () :
|
CommandObjectExpression::CommandObjectExpression () :
|
||||||
CommandObject (
|
CommandObject (
|
||||||
"expression",
|
"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>"),
|
"expression [<cmd-options>] <expr>"),
|
||||||
m_expr_line_count (0),
|
m_expr_line_count (0),
|
||||||
m_expr_lines ()
|
m_expr_lines ()
|
||||||
|
@ -347,7 +347,7 @@ CommandObjectExpression::ExecuteRawCommandString
|
||||||
lldb::OptionDefinition
|
lldb::OptionDefinition
|
||||||
CommandObjectExpression::CommandOptions::g_option_table[] =
|
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, "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, "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."},
|
{ LLDB_OPT_SET_ALL, false, "use-ir", 'i', no_argument, NULL, 0, NULL, "[Temporary] Instructs the expression evaluator to use IR instead of ASTs."},
|
||||||
|
|
|
@ -46,7 +46,7 @@ public:
|
||||||
// Options table: Required for subclasses of Options.
|
// Options table: Required for subclasses of Options.
|
||||||
|
|
||||||
static lldb::OptionDefinition g_option_table[];
|
static lldb::OptionDefinition g_option_table[];
|
||||||
Language language;
|
//Language language;
|
||||||
lldb::Encoding encoding;
|
lldb::Encoding encoding;
|
||||||
lldb::Format format;
|
lldb::Format format;
|
||||||
bool debug;
|
bool debug;
|
||||||
|
|
|
@ -87,7 +87,7 @@ CommandObjectFile::CommandOptions::ResetOptionValues ()
|
||||||
|
|
||||||
CommandObjectFile::CommandObjectFile() :
|
CommandObjectFile::CommandObjectFile() :
|
||||||
CommandObject ("file",
|
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>")
|
"file [<cmd-options>] <filename>")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ using namespace lldb_private;
|
||||||
|
|
||||||
CommandObjectHelp::CommandObjectHelp () :
|
CommandObjectHelp::CommandObjectHelp () :
|
||||||
CommandObject ("help",
|
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>]")
|
"help [<cmd-name>]")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -1554,8 +1554,8 @@ CommandObjectImageLookup::CommandOptions::g_option_table[] =
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
CommandObjectImage::CommandObjectImage(CommandInterpreter &interpreter) :
|
CommandObjectImage::CommandObjectImage(CommandInterpreter &interpreter) :
|
||||||
CommandObjectMultiword ("image",
|
CommandObjectMultiword ("image",
|
||||||
"Access information for one or more executable images.",
|
"A set of commands for accessing information for one or more executable images.",
|
||||||
"image [dump|list] ...")
|
"image <sub-command> ...")
|
||||||
{
|
{
|
||||||
LoadSubCommand (interpreter, "dump", CommandObjectSP (new CommandObjectImageDump (interpreter)));
|
LoadSubCommand (interpreter, "dump", CommandObjectSP (new CommandObjectImageDump (interpreter)));
|
||||||
LoadSubCommand (interpreter, "list", CommandObjectSP (new CommandObjectImageList ()));
|
LoadSubCommand (interpreter, "list", CommandObjectSP (new CommandObjectImageList ()));
|
||||||
|
|
|
@ -678,7 +678,7 @@ CommandObjectMemoryWrite::CommandOptions::g_option_table[] =
|
||||||
|
|
||||||
CommandObjectMemory::CommandObjectMemory (CommandInterpreter &interpreter) :
|
CommandObjectMemory::CommandObjectMemory (CommandInterpreter &interpreter) :
|
||||||
CommandObjectMultiword ("memory",
|
CommandObjectMultiword ("memory",
|
||||||
"A set of commands for operating on a memory.",
|
"A set of commands for operating on memory.",
|
||||||
"memory <subcommand> [<subcommand-options>]")
|
"memory <subcommand> [<subcommand-options>]")
|
||||||
{
|
{
|
||||||
LoadSubCommand (interpreter, "read", CommandObjectSP (new CommandObjectMemoryRead ()));
|
LoadSubCommand (interpreter, "read", CommandObjectSP (new CommandObjectMemoryRead ()));
|
||||||
|
|
|
@ -24,7 +24,7 @@ using namespace lldb_private;
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
CommandObjectQuit::CommandObjectQuit () :
|
CommandObjectQuit::CommandObjectQuit () :
|
||||||
CommandObject ("quit", "Quits out of the LLDB debugger.", "quit")
|
CommandObject ("quit", "Quit out of the LLDB debugger.", "quit")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -220,7 +220,7 @@ public:
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
CommandObjectRegister::CommandObjectRegister(CommandInterpreter &interpreter) :
|
CommandObjectRegister::CommandObjectRegister(CommandInterpreter &interpreter) :
|
||||||
CommandObjectMultiword ("register",
|
CommandObjectMultiword ("register",
|
||||||
"Access thread registers.",
|
"A set of commands to access thread registers.",
|
||||||
"register [read|write] ...")
|
"register [read|write] ...")
|
||||||
{
|
{
|
||||||
LoadSubCommand (interpreter, "read", CommandObjectSP (new CommandObjectRegisterRead ()));
|
LoadSubCommand (interpreter, "read", CommandObjectSP (new CommandObjectRegisterRead ()));
|
||||||
|
|
|
@ -575,7 +575,7 @@ CommandObjectSourceList::CommandOptions::g_option_table[] =
|
||||||
|
|
||||||
CommandObjectMultiwordSource::CommandObjectMultiwordSource (CommandInterpreter &interpreter) :
|
CommandObjectMultiwordSource::CommandObjectMultiwordSource (CommandInterpreter &interpreter) :
|
||||||
CommandObjectMultiword ("source",
|
CommandObjectMultiword ("source",
|
||||||
"Commands for accessing source file information",
|
"A set of commands for accessing source file information",
|
||||||
"source <subcommand> [<subcommand-options>]")
|
"source <subcommand> [<subcommand-options>]")
|
||||||
{
|
{
|
||||||
LoadSubCommand (interpreter, "info", CommandObjectSP (new CommandObjectSourceInfo ()));
|
LoadSubCommand (interpreter, "info", CommandObjectSP (new CommandObjectSourceInfo ()));
|
||||||
|
|
|
@ -332,7 +332,7 @@ public:
|
||||||
|
|
||||||
CommandObjectThreadBacktrace () :
|
CommandObjectThreadBacktrace () :
|
||||||
CommandObject ("thread backtrace",
|
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>] ...",
|
"thread backtrace [<thread-index>] ...",
|
||||||
eFlagProcessMustBeLaunched | eFlagProcessMustBePaused),
|
eFlagProcessMustBeLaunched | eFlagProcessMustBePaused),
|
||||||
m_options()
|
m_options()
|
||||||
|
@ -1378,7 +1378,7 @@ public:
|
||||||
|
|
||||||
CommandObjectMultiwordThread::CommandObjectMultiwordThread (CommandInterpreter &interpreter) :
|
CommandObjectMultiwordThread::CommandObjectMultiwordThread (CommandInterpreter &interpreter) :
|
||||||
CommandObjectMultiword ("thread",
|
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>]")
|
"thread <subcommand> [<subcommand-options>]")
|
||||||
{
|
{
|
||||||
LoadSubCommand (interpreter, "backtrace", CommandObjectSP (new CommandObjectThreadBacktrace ()));
|
LoadSubCommand (interpreter, "backtrace", CommandObjectSP (new CommandObjectThreadBacktrace ()));
|
||||||
|
|
|
@ -167,7 +167,7 @@ CommandInterpreter::LoadCommandDictionary ()
|
||||||
|
|
||||||
std::auto_ptr<CommandObjectRegexCommand>
|
std::auto_ptr<CommandObjectRegexCommand>
|
||||||
break_regex_cmd_ap(new CommandObjectRegexCommand ("regexp-break",
|
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));
|
"regexp-break [<file>:<line>]\nregexp-break [<address>]\nregexp-break <...>", 2));
|
||||||
if (break_regex_cmd_ap.get())
|
if (break_regex_cmd_ap.get())
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,8 +29,8 @@ using namespace lldb_private;
|
||||||
|
|
||||||
CommandObjectScript::CommandObjectScript (ScriptLanguage script_lang) :
|
CommandObjectScript::CommandObjectScript (ScriptLanguage script_lang) :
|
||||||
CommandObject ("script",
|
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.",
|
"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-expressions-for-evaluation>]"),
|
"script [<script-expression-for-evaluation>]"),
|
||||||
m_script_lang (script_lang),
|
m_script_lang (script_lang),
|
||||||
m_interpreter_ap ()
|
m_interpreter_ap ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue