Include lldb/commands as a valid logging type in the
'log list' output.

Remove an extraneous \n from one of the lldb/commands
log line.

Add an lldb/commands log indicating whether the command
was successful or not.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@138530 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp
index d2e3a5b..f403d04 100644
--- a/source/Interpreter/CommandInterpreter.cpp
+++ b/source/Interpreter/CommandInterpreter.cpp
@@ -1187,7 +1187,7 @@
             remainder.erase(0, pos);
 
         if (log)
-            log->Printf ("HandleCommand, command line after removing command name(s): '%s'\n", remainder.c_str());
+            log->Printf ("HandleCommand, command line after removing command name(s): '%s'", remainder.c_str());
     
 
         if (wants_raw_input)
@@ -1237,6 +1237,9 @@
         result.SetStatus (eReturnStatusFailed);
     }
     
+    if (log)
+      log->Printf ("HandleCommand, command %s", (result.Succeeded() ? "succeeded" : "did not succeed"));
+
     return result.Succeeded();
 }
 
diff --git a/source/lldb-log.cpp b/source/lldb-log.cpp
index 0ad5f10..a97da1c 100644
--- a/source/lldb-log.cpp
+++ b/source/lldb-log.cpp
@@ -227,6 +227,7 @@
     strm->Printf("Logging categories for 'lldb':\n"
         "\tall - turn on all available logging categories\n"
         "\tapi - enable logging of API calls and return values\n"
+        "\tcommand - log command argument parsing\n"
         "\tdefault - enable the default set of logging categories for liblldb\n"
         "\tbreak - log breakpoints\n"
         "\tevents - log broadcaster, listener and event queue activities\n"