diff options
author | Enrico Granata <egranata@apple.com> | 2013-01-17 21:36:19 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-01-17 21:36:19 +0000 |
commit | bcba2b2b7507d997742eaf1aa108b91d28b84fce (patch) | |
tree | d5c22cdce1e4937f666546edddeff32fa092e681 /lldb/source/Commands/CommandObjectQuit.h | |
parent | da29e005781274c390029abe0e596d51478342ab (diff) | |
download | bcm5719-llvm-bcba2b2b7507d997742eaf1aa108b91d28b84fce.tar.gz bcm5719-llvm-bcba2b2b7507d997742eaf1aa108b91d28b84fce.zip |
<rdar://problem/12786725>
If there is any alive process being debugged, the user is asked for confirmation before quitting LLDB
This should prevent situations where the user mistakenly types "q" and LLDB slaughters their process without any mercy whatsoever
Since it can quickly get tedious, there is a new setting on the command interpreter to disable this and replicate the previous behavior
llvm-svn: 172757
Diffstat (limited to 'lldb/source/Commands/CommandObjectQuit.h')
-rw-r--r-- | lldb/source/Commands/CommandObjectQuit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectQuit.h b/lldb/source/Commands/CommandObjectQuit.h index 444c1926bab..aab0e26cce5 100644 --- a/lldb/source/Commands/CommandObjectQuit.h +++ b/lldb/source/Commands/CommandObjectQuit.h @@ -35,6 +35,9 @@ protected: virtual bool DoExecute (Args& args, CommandReturnObject &result); + + bool + ShouldAskForConfirmation (bool& is_a_detach); }; |