diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-05-11 00:52:25 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-05-11 00:52:25 +0000 |
commit | 408fa333403f97d4df9ec8eeb2be4138e4c924bf (patch) | |
tree | 16f18b48b59fe80e16257bd6686649b7d874e99e /lldb/source/Commands/CommandObjectQuit.cpp | |
parent | 0227be6b0e8a10019cf32022e356c78f116590ce (diff) | |
download | bcm5719-llvm-408fa333403f97d4df9ec8eeb2be4138e4c924bf.tar.gz bcm5719-llvm-408fa333403f97d4df9ec8eeb2be4138e4c924bf.zip |
A couple of small fixes to make core file debugging less noisy.
Don't want about being unable to find a needed objective-c runtime
function when we're core file debugging and can't jit anything
anyway. Don't warn when quitting a debug session on a core file,
the program state can be reconstructed by re-running lldb on the
same core file again.
llvm-svn: 181653
Diffstat (limited to 'lldb/source/Commands/CommandObjectQuit.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectQuit.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectQuit.cpp b/lldb/source/Commands/CommandObjectQuit.cpp index c4c09e87b9b..d04ecdd9885 100644 --- a/lldb/source/Commands/CommandObjectQuit.cpp +++ b/lldb/source/Commands/CommandObjectQuit.cpp @@ -60,9 +60,10 @@ CommandObjectQuit::ShouldAskForConfirmation (bool& is_a_detach) if (!target_sp) continue; ProcessSP process_sp(target_sp->GetProcessSP()); - if (process_sp && - process_sp->IsValid() && - process_sp->IsAlive()) + if (process_sp + && process_sp->IsValid() + && process_sp->IsAlive() + && process_sp->WarnBeforeDetach()) { should_prompt = true; if (process_sp->GetShouldDetach() == false) |