LLDB
mainline
llvm-project
lldb
source
Plugins
ScriptInterpreter
Python
Interfaces
ScriptedThreadPythonInterface.h
Go to the documentation of this file.
1
//===-- ScriptedThreadPythonInterface.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_INTERFACES_SCRIPTEDTHREADPYTHONINTERFACE_H
10
#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPYTHONINTERFACE_H
11
12
#include "lldb/Host/Config.h"
13
14
#if LLDB_ENABLE_PYTHON
15
16
#include "
ScriptedPythonInterface.h
"
17
#include "
lldb/Interpreter/Interfaces/ScriptedThreadInterface.h
"
18
#include <optional>
19
20
namespace
lldb_private
{
21
class
ScriptedThreadPythonInterface :
public
ScriptedThreadInterface,
22
public
ScriptedPythonInterface {
23
public
:
24
ScriptedThreadPythonInterface(ScriptInterpreterPythonImpl &interpreter);
25
26
llvm::Expected<StructuredData::GenericSP>
27
CreatePluginObject(llvm::StringRef class_name, ExecutionContext &exe_ctx,
28
StructuredData::DictionarySP args_sp,
29
StructuredData::Generic *script_obj =
nullptr
)
override
;
30
31
llvm::SmallVector<llvm::StringLiteral> GetAbstractMethods()
const override
{
32
return
llvm::SmallVector<llvm::StringLiteral>(
33
{
"get_stop_reason"
,
"get_register_context"
});
34
}
35
36
lldb::tid_t
GetThreadID()
override
;
37
38
std::optional<std::string>
GetName
()
override
;
39
40
lldb::StateType
GetState()
override
;
41
42
std::optional<std::string> GetQueue()
override
;
43
44
StructuredData::DictionarySP GetStopReason()
override
;
45
46
StructuredData::ArraySP GetStackFrames()
override
;
47
48
StructuredData::DictionarySP GetRegisterInfo()
override
;
49
50
std::optional<std::string> GetRegisterContext()
override
;
51
52
StructuredData::ArraySP GetExtendedInfo()
override
;
53
};
54
}
// namespace lldb_private
55
56
#endif
// LLDB_ENABLE_PYTHON
57
#endif
// LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_INTERFACES_SCRIPTEDTHREADPYTHONINTERFACE_H
GetName
static const char * GetName(DWARFDeclContext::Entry entry)
Returns the name of entry if it has one, or the appropriate "anonymous {namespace,...
Definition:
DWARFDeclContext.cpp:17
ScriptedPythonInterface.h
ScriptedThreadInterface.h
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAttachInfo.h:14
lldb::StateType
StateType
Process and Thread States.
Definition:
lldb-enumerations.h:74
lldb::tid_t
uint64_t tid_t
Definition:
lldb-types.h:82
Generated on Fri Apr 26 2024 01:17:18 for LLDB by
1.9.6