]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/llvm/tools/lldb/source/Interpreter/ScriptInterpreterNone.cpp
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / llvm / tools / lldb / source / Interpreter / ScriptInterpreterNone.cpp
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/StreamFile.h"
15 #include "lldb/Core/StringList.h"
16 #include "lldb/Core/Debugger.h"
17 #include "lldb/Interpreter/CommandInterpreter.h"
18
19 using namespace lldb;
20 using namespace lldb_private;
21
22 ScriptInterpreterNone::ScriptInterpreterNone (CommandInterpreter &interpreter) :
23     ScriptInterpreter (interpreter, eScriptLanguageNone)
24 {
25 }
26
27 ScriptInterpreterNone::~ScriptInterpreterNone ()
28 {
29 }
30
31 bool
32 ScriptInterpreterNone::ExecuteOneLine (const char *command, CommandReturnObject *, const ExecuteScriptOptions&)
33 {
34     m_interpreter.GetDebugger().GetErrorFile()->PutCString ("error: there is no embedded script interpreter in this mode.\n");
35     return false;
36 }
37
38 void
39 ScriptInterpreterNone::ExecuteInterpreterLoop ()
40 {
41     m_interpreter.GetDebugger().GetErrorFile()->PutCString ("error: there is no embedded script interpreter in this mode.\n");
42 }
43
44