LLDB mainline
ScriptInterpreterNone.cpp
Go to the documentation of this file.
1//===-- ScriptInterpreterNone.cpp -----------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10#include "lldb/Core/Debugger.h"
12#include "lldb/Utility/Stream.h"
14
15using namespace lldb;
16using namespace lldb_private;
17
19
22
24
25static const char *no_interpreter_err_msg =
26 "error: Embedded script interpreter unavailable. LLDB was built without "
27 "scripting language support.\n";
28
29bool ScriptInterpreterNone::ExecuteOneLine(llvm::StringRef command,
31 const ExecuteScriptOptions &) {
32 m_debugger.GetAsyncErrorStream()->PutCString(no_interpreter_err_msg);
33 return false;
34}
35
37 m_debugger.GetAsyncErrorStream()->PutCString(no_interpreter_err_msg);
38}
39
45
49
52 return std::make_shared<ScriptInterpreterNone>(debugger);
53}
54
56 return "Null script interpreter";
57}
#define LLDB_PLUGIN_DEFINE(PluginName)
static const char * no_interpreter_err_msg
A class to manage flag bits.
Definition Debugger.h:87
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, ABICreateInstance create_callback)
static bool UnregisterPlugin(ABICreateInstance create_callback)
bool ExecuteOneLine(llvm::StringRef command, CommandReturnObject *result, const ExecuteScriptOptions &options=ExecuteScriptOptions()) override
static llvm::StringRef GetPluginNameStatic()
static llvm::StringRef GetPluginDescriptionStatic()
static lldb::ScriptInterpreterSP CreateInstance(Debugger &debugger)
ScriptInterpreter(Debugger &debugger, lldb::ScriptLanguage script_lang)
A class that represents a running process on the host machine.
@ eScriptLanguageNone
std::shared_ptr< lldb_private::ScriptInterpreter > ScriptInterpreterSP