Johnny Chen | 902e018 | 2010-12-23 20:21:44 +0000 | [diff] [blame] | 1 | //===-- 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 | |
Daniel Malea | d891f9b | 2012-12-05 00:20:57 +0000 | [diff] [blame^] | 10 | #include "lldb/lldb-python.h" |
| 11 | |
Johnny Chen | 902e018 | 2010-12-23 20:21:44 +0000 | [diff] [blame] | 12 | #include "CommandObjectVersion.h" |
| 13 | |
| 14 | // C Includes |
| 15 | // C++ Includes |
| 16 | // Other libraries and framework includes |
| 17 | // Project includes |
| 18 | #include "lldb/lldb-private.h" |
| 19 | #include "lldb/Interpreter/CommandInterpreter.h" |
| 20 | #include "lldb/Interpreter/CommandReturnObject.h" |
| 21 | |
| 22 | using namespace lldb; |
| 23 | using namespace lldb_private; |
| 24 | |
| 25 | //------------------------------------------------------------------------- |
| 26 | // CommandObjectVersion |
| 27 | //------------------------------------------------------------------------- |
| 28 | |
| 29 | CommandObjectVersion::CommandObjectVersion (CommandInterpreter &interpreter) : |
Jim Ingham | da26bd2 | 2012-06-08 21:56:10 +0000 | [diff] [blame] | 30 | CommandObjectParsed (interpreter, "version", "Show version of LLDB debugger.", "version") |
Johnny Chen | 902e018 | 2010-12-23 20:21:44 +0000 | [diff] [blame] | 31 | { |
| 32 | } |
| 33 | |
| 34 | CommandObjectVersion::~CommandObjectVersion () |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | bool |
Jim Ingham | da26bd2 | 2012-06-08 21:56:10 +0000 | [diff] [blame] | 39 | CommandObjectVersion::DoExecute (Args& args, CommandReturnObject &result) |
Johnny Chen | 902e018 | 2010-12-23 20:21:44 +0000 | [diff] [blame] | 40 | { |
Jim Ingham | 2e8cb8a | 2011-02-19 02:53:09 +0000 | [diff] [blame] | 41 | result.AppendMessageWithFormat ("%s\n", lldb_private::GetVersion()); |
Johnny Chen | 902e018 | 2010-12-23 20:21:44 +0000 | [diff] [blame] | 42 | result.SetStatus (eReturnStatusSuccessFinishResult); |
| 43 | return true; |
| 44 | } |
| 45 | |