#include "minidump/minidump_system_info_writer.h"
#include <string.h>
#include <iterator>
#include "base/check_op.h"
#include "base/notreached.h"
#include "minidump/minidump_string_writer.h"
#include "snapshot/system_snapshot.h"
#include "util/file/file_writer.h"
#include "util/misc/arraysize.h"
#include "util/misc/implicit_cast.h"
namespace crashpad {
namespace {
uint64_t AMD64FeaturesFromSystemSnapshot(
const SystemSnapshot* system_snapshot) { … }
}
MinidumpSystemInfoWriter::MinidumpSystemInfoWriter()
: … { … }
MinidumpSystemInfoWriter::~MinidumpSystemInfoWriter() { … }
void MinidumpSystemInfoWriter::InitializeFromSnapshot(
const SystemSnapshot* system_snapshot) { … }
void MinidumpSystemInfoWriter::SetCSDVersion(const std::string& csd_version) { … }
void MinidumpSystemInfoWriter::SetCPUX86Vendor(uint32_t ebx,
uint32_t edx,
uint32_t ecx) { … }
void MinidumpSystemInfoWriter::SetCPUX86VendorString(
const std::string& vendor) { … }
void MinidumpSystemInfoWriter::SetCPUX86VersionAndFeatures(uint32_t version,
uint32_t features) { … }
void MinidumpSystemInfoWriter::SetCPUX86AMDExtendedFeatures(
uint32_t extended_features) { … }
void MinidumpSystemInfoWriter::SetCPUOtherFeatures(uint64_t features_0,
uint64_t features_1) { … }
bool MinidumpSystemInfoWriter::Freeze() { … }
size_t MinidumpSystemInfoWriter::SizeOfObject() { … }
std::vector<internal::MinidumpWritable*> MinidumpSystemInfoWriter::Children() { … }
bool MinidumpSystemInfoWriter::WriteObject(FileWriterInterface* file_writer) { … }
MinidumpStreamType MinidumpSystemInfoWriter::StreamType() const { … }
}