blob: fd6119831a2c186cd7caf19a81804abba004dfef [file] [log] [blame]
Johnny Chen902e0182010-12-23 20:21:44 +00001//===-- CommandObjectVersion.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 "CommandObjectVersion.h"
11
12// C Includes
13// C++ Includes
14// Other libraries and framework includes
15// Project includes
16#include "lldb/lldb-private.h"
17#include "lldb/Interpreter/CommandInterpreter.h"
18#include "lldb/Interpreter/CommandReturnObject.h"
19
20using namespace lldb;
21using namespace lldb_private;
22
23//-------------------------------------------------------------------------
24// CommandObjectVersion
25//-------------------------------------------------------------------------
26
27CommandObjectVersion::CommandObjectVersion (CommandInterpreter &interpreter) :
Jim Inghamda26bd22012-06-08 21:56:10 +000028 CommandObjectParsed (interpreter, "version", "Show version of LLDB debugger.", "version")
Johnny Chen902e0182010-12-23 20:21:44 +000029{
30}
31
32CommandObjectVersion::~CommandObjectVersion ()
33{
34}
35
36bool
Jim Inghamda26bd22012-06-08 21:56:10 +000037CommandObjectVersion::DoExecute (Args& args, CommandReturnObject &result)
Johnny Chen902e0182010-12-23 20:21:44 +000038{
Jim Ingham2e8cb8a2011-02-19 02:53:09 +000039 result.AppendMessageWithFormat ("%s\n", lldb_private::GetVersion());
Johnny Chen902e0182010-12-23 20:21:44 +000040 result.SetStatus (eReturnStatusSuccessFinishResult);
41 return true;
42}
43