diff options
author | Caroline Tice <ctice@apple.com> | 2010-10-04 22:28:36 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-10-04 22:28:36 +0000 |
commit | 405fe67f1424284173459575b1081f42935c50fd (patch) | |
tree | 5110616e8a6ebcd9138f08209dbacf041b50a37a /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | 3703ff41632ea5f5749f35fe380edc8872f34d6d (diff) | |
download | llvm-405fe67f1424284173459575b1081f42935c50fd.zip llvm-405fe67f1424284173459575b1081f42935c50fd.tar.gz llvm-405fe67f1424284173459575b1081f42935c50fd.tar.bz2 |
Modify existing commands with arguments to use the new argument mechanism
(for standardized argument names, argument help, etc.)
llvm-svn: 115570
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectFrame.cpp | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 7f4f66e..239e112 100644 --- a/lldb/source/Commands/CommandObjectFrame.cpp +++ b/lldb/source/Commands/CommandObjectFrame.cpp @@ -98,9 +98,21 @@ public: CommandObject (interpreter, "frame select", "Select a frame by index from within the current thread and make it the current frame.", - "frame select <frame-index>", + NULL, eFlagProcessMustBeLaunched | eFlagProcessMustBePaused) { + CommandArgumentEntry arg; + CommandArgumentData index_arg; + + // Define the first (and only) variant of this arg. + index_arg.arg_type = eArgTypeFrameIndex; + index_arg.arg_repetition = eArgRepeatPlain; + + // There is only one variant this argument could be; put it into the argument entry. + arg.push_back (index_arg); + + // Push the data for the first argument into the m_arguments vector. + m_arguments.push_back (arg); } ~CommandObjectFrameSelect () @@ -296,8 +308,20 @@ public: "argument, local, file static and file global variables." "Children of aggregate variables can be specified such as " "'var->child.x'.", - "frame variable [<cmd-options>] [<var-name1> [<var-name2>...]]") + NULL) { + CommandArgumentEntry arg; + CommandArgumentData var_name_arg; + + // Define the first (and only) variant of this arg. + var_name_arg.arg_type = eArgTypeVarName; + var_name_arg.arg_repetition = eArgRepeatStar; + + // There is only one variant this argument could be; put it into the argument entry. + arg.push_back (var_name_arg); + + // Push the data for the first argument into the m_arguments vector. + m_arguments.push_back (arg); } virtual |