blob: 23aee3bb6f3631c66a821f3c7814451e98a7e974 [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- CommandObjectQuit.cpp -----------------------------------*- 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#include "CommandObjectQuit.h"
11
12// C Includes
13// C++ Includes
14// Other libraries and framework includes
15// Project includes
Eli Friedmanb4a47282010-06-09 07:57:51 +000016#include "lldb/Interpreter/CommandInterpreter.h"
17#include "lldb/Interpreter/CommandReturnObject.h"
Chris Lattner24943d22010-06-08 16:52:24 +000018
19using namespace lldb;
20using namespace lldb_private;
21
22//-------------------------------------------------------------------------
23// CommandObjectQuit
24//-------------------------------------------------------------------------
25
26CommandObjectQuit::CommandObjectQuit () :
27 CommandObject ("quit", "Quits out of the LLDB debugger.", "quit")
28{
29}
30
31CommandObjectQuit::~CommandObjectQuit ()
32{
33}
34
35bool
36CommandObjectQuit::Execute
37(
38 Args& command,
39 CommandContext *context,
40 CommandInterpreter *interpreter,
41 CommandReturnObject &result
42)
43{
44 interpreter->BroadcastEvent (CommandInterpreter::eBroadcastBitQuitCommandReceived);
45 result.SetStatus (eReturnStatusQuit);
46 return true;
47}
48