1 //===-- ScriptedPlatformPythonInterface.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-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTEDPLATFORMPYTHONINTERFACE_H 10 #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTEDPLATFORMPYTHONINTERFACE_H 11 12 #include "lldb/Host/Config.h" 13 14 #if LLDB_ENABLE_PYTHON 15 16 #include "ScriptedPythonInterface.h" 17 #include "lldb/Interpreter/ScriptedPlatformInterface.h" 18 19 namespace lldb_private { 20 class ScriptedPlatformPythonInterface : public ScriptedPlatformInterface, 21 public ScriptedPythonInterface { 22 public: 23 ScriptedPlatformPythonInterface(ScriptInterpreterPythonImpl &interpreter); 24 25 StructuredData::GenericSP 26 CreatePluginObject(const llvm::StringRef class_name, 27 ExecutionContext &exe_ctx, 28 StructuredData::DictionarySP args_sp, 29 StructuredData::Generic *script_obj = nullptr) override; 30 31 StructuredData::DictionarySP ListProcesses() override; 32 33 StructuredData::DictionarySP GetProcessInfo(lldb::pid_t) override; 34 35 Status AttachToProcess(lldb::ProcessAttachInfoSP attach_info) override; 36 37 Status LaunchProcess(lldb::ProcessLaunchInfoSP launch_info) override; 38 39 Status KillProcess(lldb::pid_t pid) override; 40 }; 41 } // namespace lldb_private 42 43 #endif // LLDB_ENABLE_PYTHON 44 #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTEDPLATFORMPYTHONINTERFACE_H 45