From 79cc6f7a26649cc8812d6c97641fbfe5c37f7dc4 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Thu, 7 Jun 2012 00:17:18 +0000 Subject: Fixing issues where Python scripts were not able to read user input and/or display output to the user in certain situations - This fix introduces a Python InputReader manager class that mimics the behavior of the interactive interpreter in terms of access to I/O and ensures access to the input and output flows llvm-svn: 158124 --- lldb/source/Interpreter/CommandObjectScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Interpreter/CommandObjectScript.cpp') diff --git a/lldb/source/Interpreter/CommandObjectScript.cpp b/lldb/source/Interpreter/CommandObjectScript.cpp index 9736f4985a4..5ade400d463 100644 --- a/lldb/source/Interpreter/CommandObjectScript.cpp +++ b/lldb/source/Interpreter/CommandObjectScript.cpp @@ -67,7 +67,7 @@ CommandObjectScript::ExecuteRawCommandString } // We can do better when reporting the status of one-liner script execution. - if (script_interpreter->ExecuteOneLine (command, &result)) + if (script_interpreter->ExecuteOneLine (command, &result, true)) result.SetStatus(eReturnStatusSuccessFinishNoResult); else result.SetStatus(eReturnStatusFailed); -- cgit v1.2.3