2010-06-09 00:52:24 +08:00
|
|
|
//===-- CommandObjectQuit.h -------------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// 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
|
2010-06-09 00:52:24 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef liblldb_CommandObjectQuit_h_
|
|
|
|
#define liblldb_CommandObjectQuit_h_
|
|
|
|
|
|
|
|
#include "lldb/Interpreter/CommandObject.h"
|
|
|
|
|
|
|
|
namespace lldb_private {
|
|
|
|
|
|
|
|
// CommandObjectQuit
|
|
|
|
|
2012-06-09 05:56:10 +08:00
|
|
|
class CommandObjectQuit : public CommandObjectParsed {
|
2010-06-09 00:52:24 +08:00
|
|
|
public:
|
2010-09-18 09:14:36 +08:00
|
|
|
CommandObjectQuit(CommandInterpreter &interpreter);
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2015-09-02 17:33:09 +08:00
|
|
|
~CommandObjectQuit() override;
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2012-06-09 05:56:10 +08:00
|
|
|
protected:
|
2015-09-02 17:33:09 +08:00
|
|
|
bool DoExecute(Args &args, CommandReturnObject &result) override;
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2013-01-18 05:36:19 +08:00
|
|
|
bool ShouldAskForConfirmation(bool &is_a_detach);
|
2010-06-09 00:52:24 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lldb_private
|
|
|
|
|
2015-09-02 17:33:09 +08:00
|
|
|
#endif // liblldb_CommandObjectQuit_h_
|