Initial import of lldb
Change-Id: Ib244e837bee349effa12b2ff6ffffbe3d730e929
This commit is contained in:
43
external/bsd/llvm/dist/lldb/source/Interpreter/ScriptInterpreterNone.cpp
vendored
Normal file
43
external/bsd/llvm/dist/lldb/source/Interpreter/ScriptInterpreterNone.cpp
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
//===-- ScriptInterpreterNone.cpp -------------------------------*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lldb/lldb-python.h"
|
||||
|
||||
#include "lldb/Interpreter/ScriptInterpreterNone.h"
|
||||
#include "lldb/Core/Stream.h"
|
||||
#include "lldb/Core/StringList.h"
|
||||
#include "lldb/Core/Debugger.h"
|
||||
#include "lldb/Interpreter/CommandInterpreter.h"
|
||||
|
||||
using namespace lldb;
|
||||
using namespace lldb_private;
|
||||
|
||||
ScriptInterpreterNone::ScriptInterpreterNone (CommandInterpreter &interpreter) :
|
||||
ScriptInterpreter (interpreter, eScriptLanguageNone)
|
||||
{
|
||||
}
|
||||
|
||||
ScriptInterpreterNone::~ScriptInterpreterNone ()
|
||||
{
|
||||
}
|
||||
|
||||
bool
|
||||
ScriptInterpreterNone::ExecuteOneLine (const char *command, CommandReturnObject *, const ExecuteScriptOptions&)
|
||||
{
|
||||
m_interpreter.GetDebugger().GetErrorStream().PutCString ("error: there is no embedded script interpreter in this mode.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
ScriptInterpreterNone::ExecuteInterpreterLoop ()
|
||||
{
|
||||
m_interpreter.GetDebugger().GetErrorStream().PutCString ("error: there is no embedded script interpreter in this mode.\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user