diff options
author | Jim Ingham <jingham@apple.com> | 2010-10-04 22:44:14 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-10-04 22:44:14 +0000 |
commit | 3bcdb29cab367ce88a8fa337bf313bb8d2d1bbcd (patch) | |
tree | af6bd33cbc30d1ba0dee6349b3f71a4cf5aee912 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | c8d6cfd7308a43caf1b4102a2d321bdeb334b911 (diff) | |
download | bcm5719-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.cpp | 5 |
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) |