LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
ScriptedPlatformInterface.h
Go to the documentation of this file.
1
//===-- ScriptedPlatformInterface.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_INTERPRETER_SCRIPTEDPLATFORMINTERFACE_H
10
#define LLDB_INTERPRETER_SCRIPTEDPLATFORMINTERFACE_H
11
12
#include "
lldb/Core/StructuredDataImpl.h
"
13
#include "
lldb/Interpreter/ScriptedInterface.h
"
14
15
#include "
lldb/lldb-private.h
"
16
17
#include <string>
18
19
namespace
lldb_private
{
20
class
ScriptedPlatformInterface
:
virtual
public
ScriptedInterface
{
21
public
:
22
StructuredData::GenericSP
23
CreatePluginObject
(llvm::StringRef class_name,
ExecutionContext
&exe_ctx,
24
StructuredData::DictionarySP
args_sp,
25
StructuredData::Generic
*script_obj =
nullptr
)
override
{
26
return
{};
27
}
28
29
virtual
StructuredData::DictionarySP
ListProcesses
() {
return
{}; }
30
31
virtual
StructuredData::DictionarySP
GetProcessInfo
(
lldb::pid_t
) {
32
return
{};
33
}
34
35
virtual
Status
AttachToProcess
(lldb::ProcessAttachInfoSP attach_info) {
36
return
Status
(
"ScriptedPlatformInterface cannot attach to a process"
);
37
}
38
39
virtual
Status
LaunchProcess
(lldb::ProcessLaunchInfoSP launch_info) {
40
return
Status
(
"ScriptedPlatformInterface cannot launch process"
);
41
}
42
43
virtual
Status
KillProcess
(
lldb::pid_t
pid) {
44
return
Status
(
"ScriptedPlatformInterface cannot kill process"
);
45
}
46
};
47
}
// namespace lldb_private
48
49
#endif
// LLDB_INTERPRETER_SCRIPTEDPLATFORMINTERFACE_H
ScriptedInterface.h
StructuredDataImpl.h
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::ScriptedInterface
Definition:
ScriptedInterface.h:23
lldb_private::ScriptedPlatformInterface
Definition:
ScriptedPlatformInterface.h:20
lldb_private::ScriptedPlatformInterface::LaunchProcess
virtual Status LaunchProcess(lldb::ProcessLaunchInfoSP launch_info)
Definition:
ScriptedPlatformInterface.h:39
lldb_private::ScriptedPlatformInterface::GetProcessInfo
virtual StructuredData::DictionarySP GetProcessInfo(lldb::pid_t)
Definition:
ScriptedPlatformInterface.h:31
lldb_private::ScriptedPlatformInterface::CreatePluginObject
StructuredData::GenericSP CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx, StructuredData::DictionarySP args_sp, StructuredData::Generic *script_obj=nullptr) override
Definition:
ScriptedPlatformInterface.h:23
lldb_private::ScriptedPlatformInterface::AttachToProcess
virtual Status AttachToProcess(lldb::ProcessAttachInfoSP attach_info)
Definition:
ScriptedPlatformInterface.h:35
lldb_private::ScriptedPlatformInterface::ListProcesses
virtual StructuredData::DictionarySP ListProcesses()
Definition:
ScriptedPlatformInterface.h:29
lldb_private::ScriptedPlatformInterface::KillProcess
virtual Status KillProcess(lldb::pid_t pid)
Definition:
ScriptedPlatformInterface.h:43
lldb_private::Status
An error handling class.
Definition:
Status.h:44
lldb_private::StructuredData::Generic
Definition:
StructuredData.h:635
lldb_private::StructuredData::GenericSP
std::shared_ptr< Generic > GenericSP
Definition:
StructuredData.h:73
lldb_private::StructuredData::DictionarySP
std::shared_ptr< Dictionary > DictionarySP
Definition:
StructuredData.h:72
lldb-private.h
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAttachInfo.h:14
lldb::pid_t
uint64_t pid_t
Definition:
lldb-types.h:81
Generated on Wed May 31 2023 19:02:41 for LLDB by
1.9.6