blob: 0f9da62278d9956382362e06e5f49961f4bcea84 [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
Chris Lattner30fdc8d2010-06-08 16:52:24 +000013#include "lldb/Interpreter/CommandObject.h"
14
15namespace lldb_private {
16
17//-------------------------------------------------------------------------
18// CommandObjectQuit
19//-------------------------------------------------------------------------
20
Kate Stoneb9c1b512016-09-06 20:57:50 +000021class CommandObjectQuit : public CommandObjectParsed {
Chris Lattner30fdc8d2010-06-08 16:52:24 +000022public:
Kate Stoneb9c1b512016-09-06 20:57:50 +000023 CommandObjectQuit(CommandInterpreter &interpreter);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000024
Kate Stoneb9c1b512016-09-06 20:57:50 +000025 ~CommandObjectQuit() override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000026
Jim Ingham5a988412012-06-08 21:56:10 +000027protected:
Kate Stoneb9c1b512016-09-06 20:57:50 +000028 bool DoExecute(Args &args, CommandReturnObject &result) override;
29
30 bool ShouldAskForConfirmation(bool &is_a_detach);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000031};
32
33} // namespace lldb_private
34
Pavel Labath1fb7e202015-09-02 09:33:09 +000035#endif // liblldb_CommandObjectQuit_h_