Home | History | Annotate | Download | only in Interpreter
      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 
     21 ScriptInterpreterNone::ScriptInterpreterNone (CommandInterpreter &interpreter) :
     22     ScriptInterpreter (interpreter, eScriptLanguageNone)
     23 {
     24 }
     25 
     26 ScriptInterpreterNone::~ScriptInterpreterNone ()
     27 {
     28 }
     29 
     30 bool
     31 ScriptInterpreterNone::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
     38 ScriptInterpreterNone::ExecuteInterpreterLoop ()
     39 {
     40     m_interpreter.GetDebugger().GetErrorStream().PutCString ("error: there is no embedded script interpreter in this mode.\n");
     41 }
     42 
     43 
     44