diff options
| author | Caroline Tice <ctice@apple.com> | 2010-10-29 21:56:41 +0000 |
|---|---|---|
| committer | Caroline Tice <ctice@apple.com> | 2010-10-29 21:56:41 +0000 |
| commit | 7149fab4d37b94cd6a7627fb15ab698e4519b9ef (patch) | |
| tree | d820397302c521b979185ab868e00dffd2bfd0fb /lldb/source/Commands/CommandObjectLog.cpp | |
| parent | eec5877a312eddd8f8545dbccb6cdc63c3ed7a30 (diff) | |
| download | llvm-7149fab4d37b94cd6a7627fb15ab698e4519b9ef.zip llvm-7149fab4d37b94cd6a7627fb15ab698e4519b9ef.tar.gz llvm-7149fab4d37b94cd6a7627fb15ab698e4519b9ef.tar.bz2 | |
Update arguments & help information for "log disable" command.
llvm-svn: 117717
Diffstat (limited to 'lldb/source/Commands/CommandObjectLog.cpp')
| -rw-r--r-- | lldb/source/Commands/CommandObjectLog.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp index f814dd2..e065518 100644 --- a/lldb/source/Commands/CommandObjectLog.cpp +++ b/lldb/source/Commands/CommandObjectLog.cpp @@ -258,21 +258,29 @@ public: CommandObjectLogDisable(CommandInterpreter &interpreter) : CommandObject (interpreter, "log disable", - "Disable one or more log channels.", + "Disable one or more log channel categories.", NULL) { - CommandArgumentEntry arg; + CommandArgumentEntry arg1; + CommandArgumentEntry arg2; CommandArgumentData channel_arg; + CommandArgumentData category_arg; // Define the first (and only) variant of this arg. channel_arg.arg_type = eArgTypeLogChannel; - channel_arg.arg_repetition = eArgRepeatPlus; + channel_arg.arg_repetition = eArgRepeatPlain; // There is only one variant this argument could be; put it into the argument entry. - arg.push_back (channel_arg); + arg1.push_back (channel_arg); + category_arg.arg_type = eArgTypeLogCategory; + category_arg.arg_repetition = eArgRepeatPlus; + + arg2.push_back (category_arg); + // Push the data for the first argument into the m_arguments vector. - m_arguments.push_back (arg); + m_arguments.push_back (arg1); + m_arguments.push_back (arg2); } virtual |
