diff options
author | Jim Ingham <jingham@apple.com> | 2012-02-22 22:49:20 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-02-22 22:49:20 +0000 |
commit | 4f02b22db574bed9ea65ad8b9f1b2a3157aa77ff (patch) | |
tree | 97dc1937a0123f57e5f264db8acd3a35dbd41c19 /lldb/source/API/SBDebugger.cpp | |
parent | 77171d343b00391fe052b588d28c887031a0ce9a (diff) | |
download | bcm5719-llvm-4f02b22db574bed9ea65ad8b9f1b2a3157aa77ff.tar.gz bcm5719-llvm-4f02b22db574bed9ea65ad8b9f1b2a3157aa77ff.zip |
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
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index 6628c1aa1f5..ac6fc208d23 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -1224,3 +1224,14 @@ SBDebugger::EnableLog (const char *channel, const char **categories) else return false; } + +void +SBDebugger::SetLoggingCallback (lldb::LogOutputCallback log_callback, void *baton) +{ + if (m_opaque_sp) + { + return m_opaque_sp->SetLoggingCallback (log_callback, baton); + } +} + + |