diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-02-12 08:29:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-12 08:29:06 -0800 |
| commit | eff3c343b08cfc46016708b3182ac062d45b3e21 (patch) | |
| tree | 6002909d7b485bb65f261ebce0bf414df157cf92 /lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp | |
| parent | bee9664970d51df3f4e1d298d1bcb95bba364e17 (diff) | |
[lldb] Remove Debugger::Get{Output,Error}Stream (NFC) (#126821)
Remove Debugger::GetOutputStream and Debugger::GetErrorStream in
preparation for replacing both with a new variant that needs to be
locked and hence can't be handed out like we do right now.
The patch replaces most uses with GetAsyncOutputStream and
GetAsyncErrorStream respectively. There methods return new StreamSP
objects that automatically get flushed on destruction.
See #126630 for more details.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp')
| -rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp b/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp index 896fc6951b85..7e8eee9f5aa4 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp @@ -289,7 +289,7 @@ bool ScriptInterpreterLua::BreakpointCallbackFunction( llvm::Expected<bool> BoolOrErr = lua.CallBreakpointCallback( baton, stop_frame_sp, bp_loc_sp, bp_option_data->m_extra_args_sp); if (llvm::Error E = BoolOrErr.takeError()) { - debugger.GetErrorStream() << toString(std::move(E)); + *debugger.GetAsyncErrorStream() << toString(std::move(E)); return true; } @@ -316,7 +316,7 @@ bool ScriptInterpreterLua::WatchpointCallbackFunction( llvm::Expected<bool> BoolOrErr = lua.CallWatchpointCallback(baton, stop_frame_sp, wp_sp); if (llvm::Error E = BoolOrErr.takeError()) { - debugger.GetErrorStream() << toString(std::move(E)); + *debugger.GetAsyncErrorStream() << toString(std::move(E)); return true; } |
