LLDB mainline
AddressSpace.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_ADDRESSSPACE_H
10#define LLDB_UTILITY_ADDRESSSPACE_H
11
12#include "lldb/lldb-types.h"
13#include "llvm/Support/JSON.h"
14#include <string>
15#include <vector>
16
17namespace lldb_private {
18
19/// A single address space reported by a process.
21 std::string name;
23 bool is_thread_specific = false;
24};
25
26bool fromJSON(const llvm::json::Value &value, AddressSpaceInfo &data,
27 llvm::json::Path path);
28
29llvm::json::Value toJSON(const AddressSpaceInfo &data);
30
31} // namespace lldb_private
32
33#endif // LLDB_UTILITY_ADDRESSSPACE_H
A class that represents a running process on the host machine.
llvm::json::Value toJSON(const Diagnostics::Report &report)
Render a diagnostics report as JSON, for diagnostics dump's terminal output.
bool fromJSON(const llvm::json::Value &value, SymbolValue &data, llvm::json::Path path)
uint64_t addr_space_t
Definition lldb-types.h:81
A single address space reported by a process.
lldb::addr_space_t space_id