summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-03-23 22:45:13 +0000
committerIlia K <ki.stfu@gmail.com>2015-03-23 22:45:13 +0000
commitacf28bea84bf1c40a41177bfe6f57e77033fc448 (patch)
tree4ea691752052d71d8404d3d06eeb12227c187c0b /lldb/source/API
parent481f4146cd70489a67e2f5aaa06982816ba3e4ba (diff)
downloadbcm5719-llvm-acf28bea84bf1c40a41177bfe6f57e77033fc448.tar.gz
bcm5719-llvm-acf28bea84bf1c40a41177bfe6f57e77033fc448.zip
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
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBCommandInterpreter.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp
index 42f6e51c792..0f234ec6c69 100644
--- a/lldb/source/API/SBCommandInterpreter.cpp
+++ b/lldb/source/API/SBCommandInterpreter.cpp
@@ -447,6 +447,21 @@ SBCommandInterpreter::GetDebugger ()
return sb_debugger;
}
+bool
+SBCommandInterpreter::GetPromptOnQuit()
+{
+ if (m_opaque_ptr)
+ return m_opaque_ptr->GetPromptOnQuit();
+ return false;
+}
+
+void
+SBCommandInterpreter::SetPromptOnQuit (bool b)
+{
+ if (m_opaque_ptr)
+ m_opaque_ptr->SetPromptOnQuit(b);
+}
+
CommandInterpreter *
SBCommandInterpreter::get ()
{
@@ -850,4 +865,3 @@ SBCommand::AddCommand (const char* name, lldb::SBCommandPluginInterface *impl, c
return lldb::SBCommand(new_command_sp);
return lldb::SBCommand();
}
-
OpenPOWER on IntegriCloud