1 //===-- ScriptInterpreterNone.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 "lldb/lldb-python.h" 11 12 #include "lldb/Interpreter/ScriptInterpreterNone.h" 13 #include "lldb/Core/Stream.h" 14 #include "lldb/Core/StringList.h" 15 #include "lldb/Core/Debugger.h" 16 #include "lldb/Interpreter/CommandInterpreter.h" 17 18 using namespace lldb; 19 using namespace lldb_private; 20 ScriptInterpreterNone(CommandInterpreter & interpreter)21ScriptInterpreterNone::ScriptInterpreterNone (CommandInterpreter &interpreter) : 22 ScriptInterpreter (interpreter, eScriptLanguageNone) 23 { 24 } 25 ~ScriptInterpreterNone()26ScriptInterpreterNone::~ScriptInterpreterNone () 27 { 28 } 29 30 bool ExecuteOneLine(const char * command,CommandReturnObject *,const ExecuteScriptOptions &)31ScriptInterpreterNone::ExecuteOneLine (const char *command, CommandReturnObject *, const ExecuteScriptOptions&) 32 { 33 m_interpreter.GetDebugger().GetErrorStream().PutCString ("error: there is no embedded script interpreter in this mode.\n"); 34 return false; 35 } 36 37 void ExecuteInterpreterLoop()38ScriptInterpreterNone::ExecuteInterpreterLoop () 39 { 40 m_interpreter.GetDebugger().GetErrorStream().PutCString ("error: there is no embedded script interpreter in this mode.\n"); 41 } 42 43 44