diff options
author | Ilia K <ki.stfu@gmail.com> | 2015-03-23 22:45:13 +0000 |
---|---|---|
committer | Ilia K <ki.stfu@gmail.com> | 2015-03-23 22:45:13 +0000 |
commit | acf28bea84bf1c40a41177bfe6f57e77033fc448 (patch) | |
tree | 4ea691752052d71d8404d3d06eeb12227c187c0b /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 481f4146cd70489a67e2f5aaa06982816ba3e4ba (diff) | |
download | bcm5719-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/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index eaa21adc139..a203d50ce40 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -149,6 +149,13 @@ CommandInterpreter::GetPromptOnQuit () const return m_collection_sp->GetPropertyAtIndexAsBoolean (nullptr, idx, g_properties[idx].default_uint_value != 0); } +void +CommandInterpreter::SetPromptOnQuit (bool b) +{ + const uint32_t idx = ePropertyPromptOnQuit; + m_collection_sp->SetPropertyAtIndexAsBoolean (nullptr, idx, b); +} + bool CommandInterpreter::GetStopCmdSourceOnError () const { |