summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-10-04 22:44:14 +0000
committerJim Ingham <jingham@apple.com>2010-10-04 22:44:14 +0000
commit3bcdb29cab367ce88a8fa337bf313bb8d2d1bbcd (patch)
treeaf6bd33cbc30d1ba0dee6349b3f71a4cf5aee912 /lldb/source/Interpreter/CommandInterpreter.cpp
parentc8d6cfd7308a43caf1b4102a2d321bdeb334b911 (diff)
downloadbcm5719-llvm-3bcdb29cab367ce88a8fa337bf313bb8d2d1bbcd.tar.gz
bcm5719-llvm-3bcdb29cab367ce88a8fa337bf313bb8d2d1bbcd.zip
Add an "auto-confirm" setting to the debugger so you can turn off the confirmations if you want to.
llvm-svn: 115572
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index cfa30ea1856..f0704f767c4 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -843,7 +843,10 @@ CommandInterpreter::GetConfirmationInputReaderCallback (void *baton,
bool
CommandInterpreter::Confirm (const char *message, bool default_answer)
{
- // The default interpretation just pushes a new input reader and lets it get the answer:
+ // Check AutoConfirm first:
+ if (m_debugger.GetAutoConfirm())
+ return default_answer;
+
InputReaderSP reader_sp (new InputReader(GetDebugger()));
bool response = default_answer;
if (reader_sp)
OpenPOWER on IntegriCloud