2015-12-30 06:55:28 -05:00
|
|
|
//===-- ScriptInterpreterNone.h ---------------------------------*- C++ -*-===//
|
|
|
|
|
//
|
2019-08-20 16:51:52 -04:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-12-30 06:55:28 -05:00
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2020-07-26 15:36:28 -04:00
|
|
|
#ifndef LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_NONE_SCRIPTINTERPRETERNONE_H
|
|
|
|
|
#define LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_NONE_SCRIPTINTERPRETERNONE_H
|
2015-12-30 06:55:28 -05:00
|
|
|
|
|
|
|
|
#include "lldb/Interpreter/ScriptInterpreter.h"
|
|
|
|
|
|
2017-01-02 14:26:05 -05:00
|
|
|
namespace lldb_private {
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2017-01-02 14:26:05 -05:00
|
|
|
class ScriptInterpreterNone : public ScriptInterpreter {
|
|
|
|
|
public:
|
2019-08-20 16:51:52 -04:00
|
|
|
ScriptInterpreterNone(Debugger &debugger);
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2017-01-02 14:26:05 -05:00
|
|
|
~ScriptInterpreterNone() override;
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2017-01-02 14:26:05 -05:00
|
|
|
bool ExecuteOneLine(
|
2018-07-28 07:09:23 -04:00
|
|
|
llvm::StringRef command, CommandReturnObject *result,
|
2017-01-02 14:26:05 -05:00
|
|
|
const ExecuteScriptOptions &options = ExecuteScriptOptions()) override;
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2017-01-02 14:26:05 -05:00
|
|
|
void ExecuteInterpreterLoop() override;
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2017-01-02 14:26:05 -05:00
|
|
|
// Static Functions
|
|
|
|
|
static void Initialize();
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2017-01-02 14:26:05 -05:00
|
|
|
static void Terminate();
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2019-08-20 16:51:52 -04:00
|
|
|
static lldb::ScriptInterpreterSP CreateInstance(Debugger &debugger);
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2021-11-19 15:06:13 -05:00
|
|
|
static llvm::StringRef GetPluginNameStatic() { return "script-none"; }
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2021-11-19 15:06:13 -05:00
|
|
|
static llvm::StringRef GetPluginDescriptionStatic();
|
2015-12-30 06:55:28 -05:00
|
|
|
|
2017-01-02 14:26:05 -05:00
|
|
|
// PluginInterface protocol
|
2021-11-19 15:06:13 -05:00
|
|
|
llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
|
2015-12-30 06:55:28 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace lldb_private
|
|
|
|
|
|
2020-07-26 15:36:28 -04:00
|
|
|
#endif // LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_NONE_SCRIPTINTERPRETERNONE_H
|