Dimitry Andric | 9a3a6ab | 2016-01-11 18:07:47 +0000 | [diff] [blame] | 1 | //===-- CommandObjectLanguage.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 "CommandObjectLanguage.h" |
| 11 | |
| 12 | #include "lldb/Host/Host.h" |
| 13 | |
| 14 | #include "lldb/Interpreter/CommandInterpreter.h" |
| 15 | #include "lldb/Interpreter/CommandReturnObject.h" |
| 16 | |
| 17 | #include "lldb/Target/Language.h" |
| 18 | #include "lldb/Target/LanguageRuntime.h" |
| 19 | |
| 20 | using namespace lldb; |
| 21 | using namespace lldb_private; |
| 22 | |
| 23 | CommandObjectLanguage::CommandObjectLanguage (CommandInterpreter &interpreter) : |
| 24 | CommandObjectMultiword (interpreter, |
| 25 | "language", |
| 26 | "A set of commands for managing language-specific functionality.'.", |
| 27 | "language <language-name> <subcommand> [<subcommand-options>]" |
| 28 | ) |
| 29 | { |
| 30 | //Let the LanguageRuntime populates this command with subcommands |
| 31 | LanguageRuntime::InitializeCommands(this); |
| 32 | } |
| 33 | |
| 34 | void |
| 35 | CommandObjectLanguage::GenerateHelpText (Stream &output_stream) { |
| 36 | CommandObjectMultiword::GenerateHelpText(output_stream); |
| 37 | } |
| 38 | |
| 39 | CommandObjectLanguage::~CommandObjectLanguage () |
| 40 | { |
| 41 | } |