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/Python/ScriptInterpreterPython.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/Python/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index f4efb00161f8..9ea5b95a3d80 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -1910,10 +1910,10 @@ bool ScriptInterpreterPythonImpl::BreakpointCallbackFunction( llvm::handleAllErrors( maybe_ret_val.takeError(), [&](PythonException &E) { - debugger.GetErrorStream() << E.ReadBacktrace(); + *debugger.GetAsyncErrorStream() << E.ReadBacktrace(); }, [&](const llvm::ErrorInfoBase &E) { - debugger.GetErrorStream() << E.message(); + *debugger.GetAsyncErrorStream() << E.message(); }); } else { |
