9 #ifndef LLVM_OBJECTYAML_MINIDUMPYAML_H 10 #define LLVM_OBJECTYAML_MINIDUMPYAML_H 18 namespace MinidumpYAML {
66 explicit ListStream(std::vector<entry_type> Entries = {})
114 MDExceptionStream({}) {}
119 MDExceptionStream(MDExceptionStream), ThreadContext(ThreadContext) {}
129 std::vector<minidump::MemoryInfo>
Infos;
139 Infos(Range.
begin(), Range.
end()) {}
154 Size(Content.size()) {}
168 memset(&Info, 0,
sizeof(Info));
172 std::string CSDVersion)
174 Info(Info), CSDVersion(
std::move(CSDVersion)) {}
182 LLVM_YAML_STRONG_TYPEDEF(
StringRef, BlockStringRef)
209 std::vector<std::unique_ptr<Stream>> Streams)
210 : Header(Header), Streams(
std::move(Streams)) {}
224 template <>
struct BlockScalarTraits<MinidumpYAML::BlockStringRef> {
225 static void output(
const MinidumpYAML::BlockStringRef &Text,
void *,
231 MinidumpYAML::BlockStringRef &Text) {
238 static void mapping(IO &IO, std::unique_ptr<MinidumpYAML::Stream> &S);
242 template <>
struct MappingContextTraits<minidump::MemoryDescriptor,
BinaryRef> {
266 LLVM_YAML_DECLARE_MAPPING_TRAITS(
268 LLVM_YAML_DECLARE_MAPPING_TRAITS(
270 LLVM_YAML_DECLARE_MAPPING_TRAITS(
273 LLVM_YAML_IS_SEQUENCE_VECTOR(std::unique_ptr<llvm::MinidumpYAML::Stream>)
281 #endif // LLVM_OBJECTYAML_MINIDUMPYAML_H
const_iterator end(StringRef path)
Get end iterator over path.
Type
MessagePack types as defined in the standard, with the exception of Integer being divided into a sign...
SystemInfo minidump stream.
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
This class represents lattice values for constants.
This class provides various memory handling functions that manipulate MemoryBlock instances...
minidump::MemoryDescriptor Entry
ProcessorArchitecture
The processor architecture of the system that generated this minidump.
ListStream(std::vector< entry_type > Entries={})
minidump::Header Header
The minidump header.
OSPlatform
The OS Platform of the system that generated this minidump.
StreamType
The type of a minidump stream identifies its contents.
SystemInfoStream(const minidump::SystemInfo &Info, std::string CSDVersion)
Tagged union holding either a T or a Error.
static bool classof(const Stream *S)
RawContentStream(minidump::StreamType Type, ArrayRef< uint8_t > Content={})
static bool classof(const Stream *S)
A structure containing all data belonging to a single minidump module.
ExceptionStream(const minidump::ExceptionStream &MDExceptionStream, ArrayRef< uint8_t > ThreadContext)
minidump::ExceptionStream MDExceptionStream
static bool classof(const Stream *S)
yaml::BinaryRef ThreadContext
The top level structure representing a minidump object, consisting of a minidump header, and zero or more streams.
The instances of the Type class are immutable: once they are created, they are never changed...
Instrumentation for Order File
static StreamKind getKind(minidump::StreamType Type)
Get the stream Kind used for representing streams of a given Type.
static bool classof(const Stream *S)
Stream(StreamKind Kind, minidump::StreamType Type)
A stream representing a list of abstract entries in a minidump stream.
yaml::BinaryRef MiscRecord
Describes a single memory range (both its VM address and where to find it in the file) of the process...
ExceptionStream minidump stream.
The base class for all minidump streams.
static bool classof(const Stream *S)
A structure containing all data describing a single memory region.
std::vector< std::unique_ptr< Stream > > Streams
The list of streams in this minidump object.
Object(const minidump::Header &Header, std::vector< std::unique_ptr< Stream >> Streams)
A minidump stream represented as a sequence of hex bytes.
A range adaptor for a pair of iterators.
minidump::SystemInfo Info
Specialized YAMLIO scalar type for representing a binary blob.
MemoryInfoListStream(iterator_range< object::MinidumpFile::MemoryInfoIterator > Range)
A StringRef, which is printed using YAML block notation.
Specifies the location and type of a single stream in the minidump file.
std::vector< minidump::MemoryInfo > Infos
TextContentStream(minidump::StreamType Type, StringRef Text={})
A structure containing all data belonging to a single minidump thread.
static bool classof(const Stream *S)
Describes a single thread in the minidump file.
This class implements an extremely fast bulk output stream that can only output to a stream...
A structure containing the list of MemoryInfo entries comprising a MemoryInfoList stream...
StringRef - Represent a constant reference to a string, i.e.
static void output(const MinidumpYAML::BlockStringRef &Text, void *, raw_ostream &OS)
static std::unique_ptr< Stream > create(minidump::StreamType Type)
Create an empty stream of the given Type.
const minidump::StreamType Type
A class providing access to the contents of a minidump file.
void validate(const Triple &TT, const FeatureBitset &FeatureBits)
static StringRef input(StringRef Scalar, void *, MinidumpYAML::BlockStringRef &Text)
The SystemInfo stream, containing various information about the system where this minidump was genera...
std::vector< entry_type > Entries