From acf28bea84bf1c40a41177bfe6f57e77033fc448 Mon Sep 17 00:00:00 2001 From: Ilia K Date: Mon, 23 Mar 2015 22:45:13 +0000 Subject: Turn off 'quit' confirmation in lldb-mi Summary: # Turn off interpreter.prompt-on-quit on startup (MI) # Add CommandInterpreter::SetPromptOnQuit # Add SBCommandInterpreter::GetPromptOnQuit/SetPromptOnQuit All tests pass on OS X. Test Plan: ``` -file-exec-and-symbols ~/p/hello -break-insert -f main -exec-run -interpreter-exec console quit ``` Reviewers: abidh, clayborg Reviewed By: abidh, clayborg Subscribers: lldb-commits, clayborg, abidh Differential Revision: http://reviews.llvm.org/D8444 llvm-svn: 233034 --- lldb/scripts/Python/interface/SBCommandInterpreter.i | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBCommandInterpreter.i b/lldb/scripts/Python/interface/SBCommandInterpreter.i index dfa3ce600bf..91904c5fd21 100644 --- a/lldb/scripts/Python/interface/SBCommandInterpreter.i +++ b/lldb/scripts/Python/interface/SBCommandInterpreter.i @@ -149,6 +149,12 @@ public: const char * GetIOHandlerControlSequence(char ch); + bool + GetPromptOnQuit(); + + void + SetPromptOnQuit(bool b); + bool CommandExists (const char *cmd); -- cgit v1.2.3