//===-- CommandObjectQuit.cpp ---------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "CommandObjectQuit.h" #include "lldb/Interpreter/CommandInterpreter.h" #include "lldb/Interpreter/CommandReturnObject.h" #include "lldb/Target/Process.h" #include "lldb/Utility/StreamString.h" usingnamespacelldb; usingnamespacelldb_private; // CommandObjectQuit CommandObjectQuit::CommandObjectQuit(CommandInterpreter &interpreter) : … { … } CommandObjectQuit::~CommandObjectQuit() = default; // returns true if there is at least one alive process is_a_detach will be true // if all alive processes will be detached when you quit and false if at least // one process will be killed instead bool CommandObjectQuit::ShouldAskForConfirmation(bool &is_a_detach) { … } void CommandObjectQuit::DoExecute(Args &command, CommandReturnObject &result) { … }