diff options
author | Enrico Granata <egranata@apple.com> | 2016-01-13 18:11:45 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-01-13 18:11:45 +0000 |
commit | 744959b9c9d7700a567926a4829f2e8cc6dc3cec (patch) | |
tree | 9236c8d51dbc00abc4f8cf758de375500760d3b9 /lldb/scripts/Python | |
parent | c5d29aa7c4cb5fe4c5b424c88f5ab6de5a8c4ad2 (diff) | |
download | bcm5719-llvm-744959b9c9d7700a567926a4829f2e8cc6dc3cec.tar.gz bcm5719-llvm-744959b9c9d7700a567926a4829f2e8cc6dc3cec.zip |
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
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/python-typemaps.swig | 4 |
1 files changed, 3 insertions, 1 deletions
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 * { |