blob: bdccec4899f254ba0c4a9bdc8501151bbd17f10a [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
Daniel Malead891f9b2012-12-05 00:20:57 +000010#include "lldb/lldb-python.h"
11
Chris Lattner24943d22010-06-08 16:52:24 +000012#include "CommandObjectQuit.h"
13
14// C Includes
15// C++ Includes
16// Other libraries and framework includes
17// Project includes
Eli Friedmanb4a47282010-06-09 07:57:51 +000018#include "lldb/Interpreter/CommandInterpreter.h"
19#include "lldb/Interpreter/CommandReturnObject.h"
Chris Lattner24943d22010-06-08 16:52:24 +000020
21using namespace lldb;
22using namespace lldb_private;
23
24//-------------------------------------------------------------------------
25// CommandObjectQuit
26//-------------------------------------------------------------------------
27
Greg Clayton238c0a12010-09-18 01:14:36 +000028CommandObjectQuit::CommandObjectQuit (CommandInterpreter &interpreter) :
Jim Inghamda26bd22012-06-08 21:56:10 +000029 CommandObjectParsed (interpreter, "quit", "Quit out of the LLDB debugger.", "quit")
Chris Lattner24943d22010-06-08 16:52:24 +000030{
31}
32
33CommandObjectQuit::~CommandObjectQuit ()
34{
35}
36
37bool
Jim Inghamda26bd22012-06-08 21:56:10 +000038CommandObjectQuit::DoExecute (Args& command, CommandReturnObject &result)
Chris Lattner24943d22010-06-08 16:52:24 +000039{
Greg Clayton238c0a12010-09-18 01:14:36 +000040 m_interpreter.BroadcastEvent (CommandInterpreter::eBroadcastBitQuitCommandReceived);
Chris Lattner24943d22010-06-08 16:52:24 +000041 result.SetStatus (eReturnStatusQuit);
42 return true;
43}
44