diff options
author | Jason Molenda <jmolenda@apple.com> | 2011-08-25 00:20:04 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2011-08-25 00:20:04 +0000 |
commit | bfb36ff9ea81360586ff8ae74ebd4464781857fb (patch) | |
tree | 5204fecf87d66ce227dc2c311177e586e6bd4d5d /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 8b289a2cbd2c035153a287297067c37fb0d6b001 (diff) | |
download | bcm5719-llvm-bfb36ff9ea81360586ff8ae74ebd4464781857fb.tar.gz bcm5719-llvm-bfb36ff9ea81360586ff8ae74ebd4464781857fb.zip |
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
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index d2e3a5b6da2..f403d04cff7 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -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(); } |