SBFile support in SBCommandReturnObject

Summary:
This patch add SBFile interfaces to SBCommandReturnObject, and
removes the internal callers of its FILE* interfaces.

Reviewers: JDevlieghere, jasonmolenda, labath

Reviewed By: JDevlieghere

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D68434

llvm-svn: 374238
This commit is contained in:
Lawrence D'Anna
2019-10-09 21:50:49 +00:00
parent b24022cd72
commit 9eb1371923
11 changed files with 144 additions and 40 deletions

View File

@@ -879,8 +879,9 @@ bool ScriptInterpreterPythonImpl::ExecuteOneLine(
::setbuf(outfile_handle, nullptr);
result->SetImmediateOutputFile(
debugger.GetOutputFile().GetStream());
result->SetImmediateErrorFile(debugger.GetErrorFile().GetStream());
debugger.GetOutputStream().GetFileSP());
result->SetImmediateErrorFile(
debugger.GetErrorStream().GetFileSP());
}
}
}