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/Target/Target.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/Target/Target.cpp')
| -rw-r--r-- | lldb/source/Target/Target.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 8d7709747765..db289fe9c4b6 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1532,15 +1532,15 @@ static void LoadScriptingResourceForModule(const ModuleSP &module_sp, if (module_sp && !module_sp->LoadScriptingResourceInTarget(target, error, feedback_stream)) { if (error.AsCString()) - target->GetDebugger().GetErrorStream().Printf( + target->GetDebugger().GetAsyncErrorStream()->Printf( "unable to load scripting data for module %s - error reported was " "%s\n", module_sp->GetFileSpec().GetFileNameStrippingExtension().GetCString(), error.AsCString()); } if (feedback_stream.GetSize()) - target->GetDebugger().GetErrorStream().Printf("%s\n", - feedback_stream.GetData()); + target->GetDebugger().GetAsyncErrorStream()->Printf( + "%s\n", feedback_stream.GetData()); } void Target::ClearModules(bool delete_locations) { |
