blob: df9216b7e7e36edf3fca19f77c489fe56ab383bd [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
Jim Ingham5a988412012-06-08 21:56:10 +000025class CommandObjectQuit : public CommandObjectParsed
Chris Lattner30fdc8d2010-06-08 16:52:24 +000026{
27public:
28
Greg Claytona7015092010-09-18 01:14:36 +000029 CommandObjectQuit (CommandInterpreter &interpreter);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000030
Pavel Labath1fb7e202015-09-02 09:33:09 +000031 ~CommandObjectQuit() override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000032
Jim Ingham5a988412012-06-08 21:56:10 +000033protected:
Pavel Labath1fb7e202015-09-02 09:33:09 +000034 bool
35 DoExecute(Args& args,
36 CommandReturnObject &result) override;
Enrico Granatabcba2b22013-01-17 21:36:19 +000037
38 bool
39 ShouldAskForConfirmation (bool& is_a_detach);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000040};
41
42} // namespace lldb_private
43
Pavel Labath1fb7e202015-09-02 09:33:09 +000044#endif // liblldb_CommandObjectQuit_h_