brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 6d3ff25 Raw
46 lines · c
1//===-- ScriptInterpreterNone.h ---------------------------------*- C++ -*-===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_NONE_SCRIPTINTERPRETERNONE_H10#define LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_NONE_SCRIPTINTERPRETERNONE_H11 12#include "lldb/Interpreter/ScriptInterpreter.h"13 14namespace lldb_private {15 16class ScriptInterpreterNone : public ScriptInterpreter {17public:18  ScriptInterpreterNone(Debugger &debugger);19 20  ~ScriptInterpreterNone() override;21 22  bool ExecuteOneLine(23      llvm::StringRef command, CommandReturnObject *result,24      const ExecuteScriptOptions &options = ExecuteScriptOptions()) override;25 26  void ExecuteInterpreterLoop() override;27 28  // Static Functions29  static void Initialize();30 31  static void Terminate();32 33  static lldb::ScriptInterpreterSP CreateInstance(Debugger &debugger);34 35  static llvm::StringRef GetPluginNameStatic() { return "script-none"; }36 37  static llvm::StringRef GetPluginDescriptionStatic();38 39  // PluginInterface protocol40  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }41};42 43} // namespace lldb_private44 45#endif // LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_NONE_SCRIPTINTERPRETERNONE_H46