// Return true if the specified minidump contains a stream of |stream_type|. extern"C" NS_EXPORT bool DumpHasStream(constchar* dump_file,
uint32_t stream_type) {
Minidump dump(dump_file); if (!dump.Read()) returnfalse;
uint32_t length; if (!dump.SeekToStreamType(stream_type, &length) || length == 0) returnfalse;
returntrue;
}
// Return true if the specified minidump contains a memory region // that contains the instruction pointer from the exception record. extern"C" NS_EXPORT bool DumpHasInstructionPointerMemory( constchar* dump_file) {
Minidump minidump(dump_file); if (!minidump.Read()) returnfalse;
MinidumpContext* context = exception->GetContext(); if (!context) returnfalse;
uint64_t instruction_pointer; if (!context->GetInstructionPointer(&instruction_pointer)) { returnfalse;
}
MinidumpMemoryRegion* region =
memory_list->GetMemoryRegionForAddress(instruction_pointer); return region != nullptr;
}
// This function tests for a very specific condition. It finds // an address in a file, "crash-addr", in the CWD. It checks // that the minidump has a memory region starting at that // address. The region must be 32 bytes long and contain the // values 0 to 31 as bytes, in ascending order. extern"C" NS_EXPORT bool DumpCheckMemory(constchar* dump_file) {
Minidump dump(dump_file); if (!dump.Read()) returnfalse;
MinidumpMemoryList* memory_list = dump.GetMemoryList(); if (!memory_list) { returnfalse;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.