LLDB mainline
lldb_private::AcceleratorActions Struct Reference

Actions to be performed in the native process on behalf of an accelerator plugin. More...

#include <AcceleratorGDBRemotePackets.h>

Public Member Functions

 AcceleratorActions ()=default
 AcceleratorActions (llvm::StringRef plugin_name, int64_t action_id)

Public Attributes

std::string plugin_name
 Unique name identifying the accelerator plugin.
std::string session_name
 Human-readable label for the accelerator target.
int64_t identifier = 0
 Unique identifier for this action within the plugin.
std::vector< AcceleratorBreakpointInfobreakpoints
 New breakpoints to set. Nothing to set if this is empty.

Detailed Description

Actions to be performed in the native process on behalf of an accelerator plugin.

AcceleratorActions are returned in the following contexts:

  • Initialization: in response to the "jAcceleratorPluginInitialize" packet, each plugin returns an AcceleratorActions describing initial breakpoints and other setup needed in the native process.
  • Breakpoint hits: when a native breakpoint requested by a plugin is hit, the AcceleratorBreakpointHitResponse contains an AcceleratorActions that can request additional breakpoints or other actions.

In future patches, AcceleratorActions will also be returned:

  • When the native process stops (via NativeProcessIsStopping), allowing plugins to react to arbitrary stop events.
  • Via accelerator stop reply packets, enabling plugins to inject actions into the native process asynchronously.

Definition at line 104 of file AcceleratorGDBRemotePackets.h.

Constructor & Destructor Documentation

◆ AcceleratorActions() [1/2]

lldb_private::AcceleratorActions::AcceleratorActions ( )
default

◆ AcceleratorActions() [2/2]

lldb_private::AcceleratorActions::AcceleratorActions ( llvm::StringRef plugin_name,
int64_t action_id )
inline

Definition at line 106 of file AcceleratorGDBRemotePackets.h.

References identifier, and plugin_name.

Member Data Documentation

◆ breakpoints

◆ identifier

int64_t lldb_private::AcceleratorActions::identifier = 0

◆ plugin_name

◆ session_name

std::string lldb_private::AcceleratorActions::session_name

Human-readable label for the accelerator target.

Definition at line 112 of file AcceleratorGDBRemotePackets.h.

Referenced by lldb_private::fromJSON(), and lldb_private::toJSON().


The documentation for this struct was generated from the following file: