blob: e33480d1a6d55d8ff370eb399997340c11aea1c2 [file] [log] [blame]
Chris Lattner30fdc8d2010-06-08 16:52:24 +00001//===-- 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
Daniel Malea93a64302012-12-05 00:20:57 +000010#include "lldb/lldb-python.h"
11
Chris Lattner30fdc8d2010-06-08 16:52:24 +000012#include "lldb/Interpreter/ScriptInterpreterNone.h"
13#include "lldb/Core/Stream.h"
Greg Clayton44d93782014-01-27 23:43:24 +000014#include "lldb/Core/StreamFile.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000015#include "lldb/Core/StringList.h"
Greg Clayton66111032010-06-23 01:19:29 +000016#include "lldb/Core/Debugger.h"
17#include "lldb/Interpreter/CommandInterpreter.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000018
19using namespace lldb;
20using namespace lldb_private;
21
Greg Clayton66111032010-06-23 01:19:29 +000022ScriptInterpreterNone::ScriptInterpreterNone (CommandInterpreter &interpreter) :
Greg Claytona7015092010-09-18 01:14:36 +000023 ScriptInterpreter (interpreter, eScriptLanguageNone)
Chris Lattner30fdc8d2010-06-08 16:52:24 +000024{
25}
26
27ScriptInterpreterNone::~ScriptInterpreterNone ()
28{
29}
30
Johnny Chen7dc2e472010-07-30 22:33:14 +000031bool
Enrico Granata085577f2012-10-31 00:01:26 +000032ScriptInterpreterNone::ExecuteOneLine (const char *command, CommandReturnObject *, const ExecuteScriptOptions&)
Chris Lattner30fdc8d2010-06-08 16:52:24 +000033{
Greg Clayton44d93782014-01-27 23:43:24 +000034 m_interpreter.GetDebugger().GetErrorFile()->PutCString ("error: there is no embedded script interpreter in this mode.\n");
Johnny Chen7dc2e472010-07-30 22:33:14 +000035 return false;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000036}
37
38void
Greg Claytona7015092010-09-18 01:14:36 +000039ScriptInterpreterNone::ExecuteInterpreterLoop ()
Chris Lattner30fdc8d2010-06-08 16:52:24 +000040{
Greg Clayton44d93782014-01-27 23:43:24 +000041 m_interpreter.GetDebugger().GetErrorFile()->PutCString ("error: there is no embedded script interpreter in this mode.\n");
Chris Lattner30fdc8d2010-06-08 16:52:24 +000042}
43
44