LLDB
mainline
llvm-project
lldb
source
Utility
AddressSpace.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/AddressSpace.h
"
10
11
using namespace
llvm
;
12
using namespace
llvm::json
;
13
14
namespace
lldb_private
{
15
16
bool
fromJSON
(
const
json::Value &value,
AddressSpaceInfo
&data, Path path) {
17
ObjectMapper o(value, path);
18
return
o && o.map(
"name"
, data.
name
) && o.map(
"space_id"
, data.
space_id
) &&
19
o.map(
"is_thread_specific"
, data.
is_thread_specific
);
20
}
21
22
json::Value
toJSON
(
const
AddressSpaceInfo
&data) {
23
return
json::Value(
Object
{{
"name"
, data.
name
},
24
{
"space_id"
, data.
space_id
},
25
{
"is_thread_specific"
, data.
is_thread_specific
}});
26
}
27
28
}
// namespace lldb_private
AddressSpace.h
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb_private::toJSON
llvm::json::Value toJSON(const Diagnostics::Report &report)
Render a diagnostics report as JSON, for diagnostics dump's terminal output.
Definition
Diagnostics.cpp:385
lldb_private::LLDBLog::Object
@ Object
Definition
LLDBLog.h:35
lldb_private::fromJSON
bool fromJSON(const llvm::json::Value &value, SymbolValue &data, llvm::json::Path path)
llvm::json
Definition
Diagnostics.h:24
llvm
Definition
Debugger.h:58
lldb_private::AddressSpaceInfo
A single address space reported by a process.
Definition
AddressSpace.h:20
lldb_private::AddressSpaceInfo::is_thread_specific
bool is_thread_specific
Definition
AddressSpace.h:23
lldb_private::AddressSpaceInfo::space_id
lldb::addr_space_t space_id
Definition
AddressSpace.h:22
lldb_private::AddressSpaceInfo::name
std::string name
Definition
AddressSpace.h:21
Generated on
for LLDB by
1.14.0