1c9c55a26SColin Riley //===-- CommandObjectLanguage.cpp -------------------------------*- C++ -*-===// 2c9c55a26SColin Riley // 3c9c55a26SColin Riley // The LLVM Compiler Infrastructure 4c9c55a26SColin Riley // 5c9c55a26SColin Riley // This file is distributed under the University of Illinois Open Source 6c9c55a26SColin Riley // License. See LICENSE.TXT for details. 7c9c55a26SColin Riley // 8c9c55a26SColin Riley //===----------------------------------------------------------------------===// 9c9c55a26SColin Riley 10c9c55a26SColin Riley #include "CommandObjectLanguage.h" 11c9c55a26SColin Riley 12c9c55a26SColin Riley #include "lldb/Host/Host.h" 13c9c55a26SColin Riley 14c9c55a26SColin Riley #include "lldb/Interpreter/CommandInterpreter.h" 15c9c55a26SColin Riley #include "lldb/Interpreter/CommandReturnObject.h" 16c9c55a26SColin Riley 17*0e0984eeSJim Ingham #include "lldb/Target/Language.h" 18c9c55a26SColin Riley #include "lldb/Target/LanguageRuntime.h" 19c9c55a26SColin Riley 20c9c55a26SColin Riley using namespace lldb; 21c9c55a26SColin Riley using namespace lldb_private; 22c9c55a26SColin Riley 23c9c55a26SColin Riley CommandObjectLanguage::CommandObjectLanguage (CommandInterpreter &interpreter) : 24c9c55a26SColin Riley CommandObjectMultiword (interpreter, 25c9c55a26SColin Riley "language", 26c9c55a26SColin Riley "A set of commands for managing language-specific functionality.'.", 27c9c55a26SColin Riley "language <language-name> <subcommand> [<subcommand-options>]" 28c9c55a26SColin Riley ) 29c9c55a26SColin Riley { 30c9c55a26SColin Riley //Let the LanguageRuntime populates this command with subcommands 31c9c55a26SColin Riley LanguageRuntime::InitializeCommands(this); 32c9c55a26SColin Riley } 33c9c55a26SColin Riley 34c9c55a26SColin Riley void 35c9c55a26SColin Riley CommandObjectLanguage::GenerateHelpText (Stream &output_stream) { 36c9c55a26SColin Riley CommandObjectMultiword::GenerateHelpText(output_stream); 37c9c55a26SColin Riley 38c9c55a26SColin Riley output_stream << "\nlanguage name can be one of the following:\n"; 39c9c55a26SColin Riley 40*0e0984eeSJim Ingham Language::PrintAllLanguages(output_stream, " ", "\n"); 41c9c55a26SColin Riley } 42c9c55a26SColin Riley 43c9c55a26SColin Riley CommandObjectLanguage::~CommandObjectLanguage () 44c9c55a26SColin Riley { 45c9c55a26SColin Riley } 46