From 744959b9c9d7700a567926a4829f2e8cc6dc3cec Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 13 Jan 2016 18:11:45 +0000 Subject: Fix an issue where scripted commands would not actually print any of their output if an immediate output file was set in the result object via a Python file object Fixes rdar://24130303 llvm-svn: 257644 --- lldb/scripts/Python/python-typemaps.swig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lldb/scripts/Python') diff --git a/lldb/scripts/Python/python-typemaps.swig b/lldb/scripts/Python/python-typemaps.swig index 9c4e5cecb36..68e442defd3 100644 --- a/lldb/scripts/Python/python-typemaps.swig +++ b/lldb/scripts/Python/python-typemaps.swig @@ -545,7 +545,9 @@ return nullptr; $1 = file.GetStream(); - } + if ($1) + file.Clear(); + } } %typemap(out) FILE * { -- cgit v1.2.3