2010-06-08 16:52:24 +00:00
|
|
|
//===-- CommandObjectQuit.h -------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef liblldb_CommandObjectQuit_h_
|
|
|
|
#define liblldb_CommandObjectQuit_h_
|
|
|
|
|
|
|
|
// C Includes
|
|
|
|
// C++ Includes
|
|
|
|
// Other libraries and framework includes
|
|
|
|
// Project includes
|
|
|
|
#include "lldb/Interpreter/CommandObject.h"
|
|
|
|
|
|
|
|
namespace lldb_private {
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
// CommandObjectQuit
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2016-09-06 20:57:50 +00:00
|
|
|
class CommandObjectQuit : public CommandObjectParsed {
|
2010-06-08 16:52:24 +00:00
|
|
|
public:
|
2016-09-06 20:57:50 +00:00
|
|
|
CommandObjectQuit(CommandInterpreter &interpreter);
|
2010-06-08 16:52:24 +00:00
|
|
|
|
2016-09-06 20:57:50 +00:00
|
|
|
~CommandObjectQuit() override;
|
2010-06-08 16:52:24 +00:00
|
|
|
|
2012-06-08 21:56:10 +00:00
|
|
|
protected:
|
2016-09-06 20:57:50 +00:00
|
|
|
bool DoExecute(Args &args, CommandReturnObject &result) override;
|
|
|
|
|
|
|
|
bool ShouldAskForConfirmation(bool &is_a_detach);
|
2010-06-08 16:52:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lldb_private
|
|
|
|
|
2015-09-02 09:33:09 +00:00
|
|
|
#endif // liblldb_CommandObjectQuit_h_
|