mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user