[Lldb-commits] [lldb] r138530 - in /lldb/trunk/source: Interpreter/CommandInterpreter.cpp lldb-log.cpp
Jason Molenda
jmolenda at apple.com
Wed Aug 24 17:20:04 PDT 2011
Author: jmolenda
Date: Wed Aug 24 19:20:04 2011
New Revision: 138530
URL: http://llvm.org/viewvc/llvm-project?rev=138530&view=rev
Log:
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.
Modified:
lldb/trunk/source/Interpreter/CommandInterpreter.cpp
lldb/trunk/source/lldb-log.cpp
Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=138530&r1=138529&r2=138530&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Wed Aug 24 19:20:04 2011
@@ -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();
}
Modified: lldb/trunk/source/lldb-log.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/lldb-log.cpp?rev=138530&r1=138529&r2=138530&view=diff
==============================================================================
--- lldb/trunk/source/lldb-log.cpp (original)
+++ lldb/trunk/source/lldb-log.cpp Wed Aug 24 19:20:04 2011
@@ -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"
More information about the lldb-commits
mailing list