From 4f02b22db574bed9ea65ad8b9f1b2a3157aa77ff Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Wed, 22 Feb 2012 22:49:20 +0000 Subject: Make Debugger::SetLoggingCallback public, and expose it through the SB API. Sometimes it is not convenient to provide a log callback right when the debugger is created. llvm-svn: 151209 --- lldb/source/Core/Debugger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Core/Debugger.cpp') diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index abf23eab1ca..d96b65baa05 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -2312,9 +2312,9 @@ Debugger::FormatPrompt void Debugger::SetLoggingCallback (lldb::LogOutputCallback log_callback, void *baton) { - // For simplicity's sake, I am only allowing the logging callback to get - // set when the debugger is created. Otherwise, I'd have to go turn off - // all the log channels using this callback, and switch them to the new one... + // For simplicity's sake, I am not going to deal with how to close down any + // open logging streams, I just redirect everything from here on out to the + // callback. m_log_callback_stream_sp.reset (new StreamCallback (log_callback, baton)); } -- cgit v1.2.3