LLDB
mainline
llvm-project
lldb
source
Utility
AcceleratorGDBRemotePackets.cpp
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
#include "
lldb/Utility/AcceleratorGDBRemotePackets.h
"
10
11
using namespace
lldb_private
;
12
13
llvm::json::Value
lldb_private::toJSON
(
const
AcceleratorActions
&data) {
14
return
llvm::json::Object{
15
{
"plugin_name"
, data.
plugin_name
},
16
{
"session_name"
, data.
session_name
},
17
{
"identifier"
, data.
identifier
},
18
};
19
}
20
21
bool
lldb_private::fromJSON
(
const
llvm::json::Value &value,
22
AcceleratorActions
&data, llvm::json::Path path) {
23
llvm::json::ObjectMapper o(value, path);
24
return
o && o.map(
"plugin_name"
, data.
plugin_name
) &&
25
o.map(
"session_name"
, data.
session_name
) &&
26
o.map(
"identifier"
, data.
identifier
);
27
}
AcceleratorGDBRemotePackets.h
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb_private::fromJSON
bool fromJSON(const llvm::json::Value &value, AcceleratorActions &data, llvm::json::Path path)
Definition
AcceleratorGDBRemotePackets.cpp:21
lldb_private::toJSON
llvm::json::Value toJSON(const AcceleratorActions &data)
Definition
AcceleratorGDBRemotePackets.cpp:13
lldb_private::AcceleratorActions
Definition
AcceleratorGDBRemotePackets.h:18
lldb_private::AcceleratorActions::identifier
int64_t identifier
Unique identifier for this action within the plugin.
Definition
AcceleratorGDBRemotePackets.h:28
lldb_private::AcceleratorActions::plugin_name
std::string plugin_name
Unique name identifying the accelerator plugin.
Definition
AcceleratorGDBRemotePackets.h:24
lldb_private::AcceleratorActions::session_name
std::string session_name
Human-readable label for the accelerator target.
Definition
AcceleratorGDBRemotePackets.h:26
Generated on
for LLDB by
1.14.0