[Lldb-commits] [lldb] r162500 - /lldb/trunk/source/Interpreter/CommandObject.cpp
Jim Ingham
jingham at apple.com
Thu Aug 23 16:37:31 PDT 2012
Author: jingham
Date: Thu Aug 23 18:37:31 2012
New Revision: 162500
URL: http://llvm.org/viewvc/llvm-project?rev=162500&view=rev
Log:
Document the generic register names in help for register-name.
Modified:
lldb/trunk/source/Interpreter/CommandObject.cpp
Modified: lldb/trunk/source/Interpreter/CommandObject.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandObject.cpp?rev=162500&r1=162499&r2=162500&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandObject.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandObject.cpp Thu Aug 23 18:37:31 2012
@@ -630,6 +630,20 @@
}
static const char *
+RegisterNameHelpTextCallback ()
+{
+ return "Register names can be specified using the architecture specific names. "
+ "They can also be specified using generic names.\n"
+ "The generic names defined in lldb are:\n"
+ "\n"
+ "pc - program counter register\n"
+ "ra - return address register\n"
+ "fp - frame pointer register\n"
+ "sp - stack pointer register\n"
+ "arg{1-6} - integer argument passing registers.\n";
+}
+
+static const char *
BreakpointIDHelpTextCallback ()
{
return "Breakpoint ID's consist major and minor numbers; the major number "
@@ -941,7 +955,7 @@
{ eArgTypePythonFunction, "python-function", CommandCompletions::eNoCompletion, { NULL, false }, "The name of a Python function." },
{ eArgTypePythonScript, "python-script", CommandCompletions::eNoCompletion, { NULL, false }, "Source code written in Python." },
{ eArgTypeQueueName, "queue-name", CommandCompletions::eNoCompletion, { NULL, false }, "The name of the thread queue." },
- { eArgTypeRegisterName, "register-name", CommandCompletions::eNoCompletion, { NULL, false }, "A register name." },
+ { eArgTypeRegisterName, "register-name", CommandCompletions::eNoCompletion, { RegisterNameHelpTextCallback, true }, NULL },
{ eArgTypeRegularExpression, "regular-expression", CommandCompletions::eNoCompletion, { NULL, false }, "A regular expression." },
{ eArgTypeRunArgs, "run-args", CommandCompletions::eNoCompletion, { NULL, false }, "Arguments to be passed to the target program when it starts executing." },
{ eArgTypeRunMode, "run-mode", CommandCompletions::eNoCompletion, { NULL, false }, "Help text goes here." },
More information about the lldb-commits
mailing list