131c39dacSJohnny Chen //===-- CommandObjectVersion.cpp --------------------------------*- C++ -*-===// 231c39dacSJohnny Chen // 331c39dacSJohnny Chen // The LLVM Compiler Infrastructure 431c39dacSJohnny Chen // 531c39dacSJohnny Chen // This file is distributed under the University of Illinois Open Source 631c39dacSJohnny Chen // License. See LICENSE.TXT for details. 731c39dacSJohnny Chen // 831c39dacSJohnny Chen //===----------------------------------------------------------------------===// 931c39dacSJohnny Chen 10*93a64300SDaniel Malea #include "lldb/lldb-python.h" 11*93a64300SDaniel Malea 1231c39dacSJohnny Chen #include "CommandObjectVersion.h" 1331c39dacSJohnny Chen 1431c39dacSJohnny Chen // C Includes 1531c39dacSJohnny Chen // C++ Includes 1631c39dacSJohnny Chen // Other libraries and framework includes 1731c39dacSJohnny Chen // Project includes 1831c39dacSJohnny Chen #include "lldb/lldb-private.h" 1931c39dacSJohnny Chen #include "lldb/Interpreter/CommandInterpreter.h" 2031c39dacSJohnny Chen #include "lldb/Interpreter/CommandReturnObject.h" 2131c39dacSJohnny Chen 2231c39dacSJohnny Chen using namespace lldb; 2331c39dacSJohnny Chen using namespace lldb_private; 2431c39dacSJohnny Chen 2531c39dacSJohnny Chen //------------------------------------------------------------------------- 2631c39dacSJohnny Chen // CommandObjectVersion 2731c39dacSJohnny Chen //------------------------------------------------------------------------- 2831c39dacSJohnny Chen 2931c39dacSJohnny Chen CommandObjectVersion::CommandObjectVersion (CommandInterpreter &interpreter) : 305a988416SJim Ingham CommandObjectParsed (interpreter, "version", "Show version of LLDB debugger.", "version") 3131c39dacSJohnny Chen { 3231c39dacSJohnny Chen } 3331c39dacSJohnny Chen 3431c39dacSJohnny Chen CommandObjectVersion::~CommandObjectVersion () 3531c39dacSJohnny Chen { 3631c39dacSJohnny Chen } 3731c39dacSJohnny Chen 3831c39dacSJohnny Chen bool 395a988416SJim Ingham CommandObjectVersion::DoExecute (Args& args, CommandReturnObject &result) 4031c39dacSJohnny Chen { 4185e8b814SJim Ingham result.AppendMessageWithFormat ("%s\n", lldb_private::GetVersion()); 4231c39dacSJohnny Chen result.SetStatus (eReturnStatusSuccessFinishResult); 4331c39dacSJohnny Chen return true; 4431c39dacSJohnny Chen } 4531c39dacSJohnny Chen 46