1 //===-- 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 16 #include "lldb/Interpreter/CommandInterpreter.h" 17 #include "lldb/Interpreter/CommandReturnObject.h" 18 19 using namespace lldb; 20 using namespace lldb_private; 21 22 //------------------------------------------------------------------------- 23 // CommandObjectQuit 24 //------------------------------------------------------------------------- 25 26 CommandObjectQuit::CommandObjectQuit (CommandInterpreter &interpreter) : 27 CommandObject (interpreter, "quit", "Quit out of the LLDB debugger.", "quit") 28 { 29 } 30 31 CommandObjectQuit::~CommandObjectQuit () 32 { 33 } 34 35 bool 36 CommandObjectQuit::Execute 37 ( 38 Args& args, 39 CommandReturnObject &result 40 ) 41 { 42 m_interpreter.BroadcastEvent (CommandInterpreter::eBroadcastBitQuitCommandReceived); 43 result.SetStatus (eReturnStatusQuit); 44 return true; 45 } 46 47