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"
13#include "lldb/Utility/Stream.h"
15
16#include "llvm/Support/Threading.h"
17
18#include <mutex>
19
20using namespace lldb;
21using namespace lldb_private;
22
24
27
29
30bool ScriptInterpreterNone::ExecuteOneLine(llvm::StringRef command,
32 const ExecuteScriptOptions &) {
34 "error: there is no embedded script interpreter in this mode.\n");
35 return false;
36}
37
40 "error: there is no embedded script interpreter in this mode.\n");
41}
42
44 static llvm::once_flag g_once_flag;
45
46 llvm::call_once(g_once_flag, []() {
50 });
51}
52
54
55lldb::ScriptInterpreterSP
57 return std::make_shared<ScriptInterpreterNone>(debugger);
58}
59
61 return "Null script interpreter";
62}
#define LLDB_PLUGIN_DEFINE(PluginName)
Definition: PluginManager.h:31
A class to manage flag bits.
Definition: Debugger.h:78
StreamFile & GetErrorStream()
Definition: Debugger.h:151
static bool RegisterPlugin(llvm::StringRef name, llvm::StringRef description, 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)
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
Definition: Stream.cpp:63
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
Definition: SBAddress.h:15
@ eScriptLanguageNone