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/LanguageRuntime.h" 18 19 using namespace lldb; 20 using namespace lldb_private; 21 22 CommandObjectLanguage::CommandObjectLanguage (CommandInterpreter &interpreter) : 23 CommandObjectMultiword (interpreter, 24 "language", 25 "A set of commands for managing language-specific functionality.'.", 26 "language <language-name> <subcommand> [<subcommand-options>]" 27 ) 28 { 29 //Let the LanguageRuntime populates this command with subcommands 30 LanguageRuntime::InitializeCommands(this); 31 } 32 33 void 34 CommandObjectLanguage::GenerateHelpText (Stream &output_stream) { 35 CommandObjectMultiword::GenerateHelpText(output_stream); 36 37 output_stream << "\nlanguage name can be one of the following:\n"; 38 39 LanguageRuntime::PrintAllLanguages(output_stream, " ", "\n"); 40 } 41 42 CommandObjectLanguage::~CommandObjectLanguage () 43 { 44 } 45