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.

llvm-svn: 138530
This commit is contained in:
Jason Molenda
2011-08-25 00:20:04 +00:00
parent 8b289a2cbd
commit bfb36ff9ea
2 changed files with 5 additions and 1 deletions

View File

@@ -1187,7 +1187,7 @@ CommandInterpreter::HandleCommand (const char *command_line,
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 @@ CommandInterpreter::HandleCommand (const char *command_line,
result.SetStatus (eReturnStatusFailed);
}
if (log)
log->Printf ("HandleCommand, command %s", (result.Succeeded() ? "succeeded" : "did not succeed"));
return result.Succeeded();
}

View File

@@ -227,6 +227,7 @@ lldb_private::ListLogCategories (Stream *strm)
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"