2010-06-09 00:52:24 +08:00
|
|
|
//===-- ScriptInterpreterNone.cpp -------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2012-12-05 08:20:57 +08:00
|
|
|
#include "lldb/lldb-python.h"
|
|
|
|
|
2010-06-09 00:52:24 +08:00
|
|
|
#include "lldb/Interpreter/ScriptInterpreterNone.h"
|
|
|
|
#include "lldb/Core/Stream.h"
|
2014-01-28 07:43:24 +08:00
|
|
|
#include "lldb/Core/StreamFile.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
#include "lldb/Core/StringList.h"
|
2010-06-23 09:19:29 +08:00
|
|
|
#include "lldb/Core/Debugger.h"
|
|
|
|
#include "lldb/Interpreter/CommandInterpreter.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
|
|
|
|
using namespace lldb;
|
|
|
|
using namespace lldb_private;
|
|
|
|
|
2010-06-23 09:19:29 +08:00
|
|
|
ScriptInterpreterNone::ScriptInterpreterNone (CommandInterpreter &interpreter) :
|
2010-09-18 09:14:36 +08:00
|
|
|
ScriptInterpreter (interpreter, eScriptLanguageNone)
|
2010-06-09 00:52:24 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
ScriptInterpreterNone::~ScriptInterpreterNone ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-07-31 06:33:14 +08:00
|
|
|
bool
|
2012-10-31 08:01:26 +08:00
|
|
|
ScriptInterpreterNone::ExecuteOneLine (const char *command, CommandReturnObject *, const ExecuteScriptOptions&)
|
2010-06-09 00:52:24 +08:00
|
|
|
{
|
2014-01-28 07:43:24 +08:00
|
|
|
m_interpreter.GetDebugger().GetErrorFile()->PutCString ("error: there is no embedded script interpreter in this mode.\n");
|
2010-07-31 06:33:14 +08:00
|
|
|
return false;
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2010-09-18 09:14:36 +08:00
|
|
|
ScriptInterpreterNone::ExecuteInterpreterLoop ()
|
2010-06-09 00:52:24 +08:00
|
|
|
{
|
2014-01-28 07:43:24 +08:00
|
|
|
m_interpreter.GetDebugger().GetErrorFile()->PutCString ("error: there is no embedded script interpreter in this mode.\n");
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|