From cd4d24d5e9583dfe8839262df17088e38962fda1 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 16 Oct 2012 20:57:12 +0000 Subject: Fixing an issue with our Driver where setting an immediate output would not cause suppression of the final printout. This allows effective output redirection for Python commands llvm-svn: 166058 --- lldb/scripts/Python/interface/SBCommandReturnObject.i | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBCommandReturnObject.i b/lldb/scripts/Python/interface/SBCommandReturnObject.i index 82c07ee434d..81e85ca8c21 100644 --- a/lldb/scripts/Python/interface/SBCommandReturnObject.i +++ b/lldb/scripts/Python/interface/SBCommandReturnObject.i @@ -35,15 +35,27 @@ public: const char * GetError (); - size_t - PutOutput (FILE *fh); - size_t GetOutputSize (); size_t GetErrorSize (); + const char * + GetOutput (bool only_if_no_immediate); + + const char * + GetError (bool if_no_immediate); + + size_t + GetErrorSize (bool only_if_no_immediate); + + size_t + GetOutputSize (bool only_if_no_immediate); + + size_t + PutOutput (FILE *fh); + size_t PutError (FILE *fh); -- cgit v1.2.3