blob: f2998f8690fbfefc915c8abe00d9062a39207f12 [file] [log] [blame]
Chris Lattner30fdc8d2010-06-08 16:52:24 +00001//===-- CommandObjectQuit.h -------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef liblldb_CommandObjectQuit_h_
11#define liblldb_CommandObjectQuit_h_
12
13// C Includes
14// C++ Includes
15// Other libraries and framework includes
16// Project includes
17#include "lldb/Interpreter/CommandObject.h"
18
19namespace lldb_private {
20
21//-------------------------------------------------------------------------
22// CommandObjectQuit
23//-------------------------------------------------------------------------
24
Kate Stoneb9c1b512016-09-06 20:57:50 +000025class CommandObjectQuit : public CommandObjectParsed {
Chris Lattner30fdc8d2010-06-08 16:52:24 +000026public:
Kate Stoneb9c1b512016-09-06 20:57:50 +000027 CommandObjectQuit(CommandInterpreter &interpreter);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000028
Kate Stoneb9c1b512016-09-06 20:57:50 +000029 ~CommandObjectQuit() override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000030
Jim Ingham5a988412012-06-08 21:56:10 +000031protected:
Kate Stoneb9c1b512016-09-06 20:57:50 +000032 bool DoExecute(Args &args, CommandReturnObject &result) override;
33
34 bool ShouldAskForConfirmation(bool &is_a_detach);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000035};
36
37} // namespace lldb_private
38
Pavel Labath1fb7e202015-09-02 09:33:09 +000039#endif // liblldb_CommandObjectQuit_h_