[Lldb-commits] [lldb] r117717 - /lldb/trunk/source/Commands/CommandObjectLog.cpp

Caroline Tice ctice at apple.com
Fri Oct 29 14:56:41 PDT 2010


Author: ctice
Date: Fri Oct 29 16:56:41 2010
New Revision: 117717

URL: http://llvm.org/viewvc/llvm-project?rev=117717&view=rev
Log:
Update arguments & help information for "log disable" command.


Modified:
    lldb/trunk/source/Commands/CommandObjectLog.cpp

Modified: lldb/trunk/source/Commands/CommandObjectLog.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectLog.cpp?rev=117717&r1=117716&r2=117717&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectLog.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectLog.cpp Fri Oct 29 16:56:41 2010
@@ -258,21 +258,29 @@
     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





More information about the lldb-commits mailing list