LLDB mainline
AcceleratorGDBRemotePackets.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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_UTILITY_ACCELERATORGDBREMOTEPACKETS_H
10#define LLDB_UTILITY_ACCELERATORGDBREMOTEPACKETS_H
11
12#include "llvm/Support/JSON.h"
13#include <cstdint>
14#include <string>
15
16namespace lldb_private {
17
19 AcceleratorActions() = default;
20 AcceleratorActions(llvm::StringRef plugin_name, int64_t action_id)
21 : plugin_name(plugin_name), identifier(action_id) {}
22
23 /// Unique name identifying the accelerator plugin.
24 std::string plugin_name;
25 /// Human-readable label for the accelerator target.
26 std::string session_name;
27 /// Unique identifier for this action within the plugin.
28 int64_t identifier = 0;
29};
30
31bool fromJSON(const llvm::json::Value &value, AcceleratorActions &data,
32 llvm::json::Path path);
33
34llvm::json::Value toJSON(const AcceleratorActions &data);
35
36} // namespace lldb_private
37
38#endif // LLDB_UTILITY_ACCELERATORGDBREMOTEPACKETS_H
A class that represents a running process on the host machine.
bool fromJSON(const llvm::json::Value &value, AcceleratorActions &data, llvm::json::Path path)
llvm::json::Value toJSON(const AcceleratorActions &data)
AcceleratorActions(llvm::StringRef plugin_name, int64_t action_id)
int64_t identifier
Unique identifier for this action within the plugin.
std::string plugin_name
Unique name identifying the accelerator plugin.
std::string session_name
Human-readable label for the accelerator target.