1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
pub use minidump_common::format::{
self, ArmElfHwCaps as MDCPUInformationARMElfHwCaps, PlatformId,
ProcessorArchitecture as MDCPUArchitecture, GUID, MINIDUMP_DIRECTORY as MDRawDirectory,
MINIDUMP_EXCEPTION as MDException, MINIDUMP_EXCEPTION_STREAM as MDRawExceptionStream,
MINIDUMP_HANDLE_DATA_STREAM as MDRawHandleDataStream,
MINIDUMP_HANDLE_DESCRIPTOR as MDRawHandleDescriptor, MINIDUMP_HEADER as MDRawHeader,
MINIDUMP_LOCATION_DESCRIPTOR as MDLocationDescriptor,
MINIDUMP_MEMORY_DESCRIPTOR as MDMemoryDescriptor, MINIDUMP_MEMORY_INFO as MDMemoryInfo,
MINIDUMP_MEMORY_INFO_LIST as MDMemoryInfoList, MINIDUMP_MODULE as MDRawModule,
MINIDUMP_SIGNATURE as MD_HEADER_SIGNATURE, MINIDUMP_STREAM_TYPE as MDStreamType,
MINIDUMP_SYSTEM_INFO as MDRawSystemInfo, MINIDUMP_THREAD as MDRawThread,
MINIDUMP_THREAD_NAME as MDRawThreadName, MINIDUMP_VERSION as MD_HEADER_VERSION,
VS_FIXEDFILEINFO as MDVSFixedFileInfo,
};
/* An MDRVA is an offset into the minidump file. The beginning of the
* MDRawHeader is at offset 0. */
pub type MDRVA = u32;
pub type MDRawThreadList = Vec<MDRawThread>;
cfg_if::cfg_if! {
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
pub use format::X86CpuInfo as MDCPUInformation;
} else if #[cfg(any(target_arch = "arm", target_arch = "aarch64"))] {
pub use format::ARMCpuInfo as MDCPUInformation;
} else if #[cfg(target_arch = "mips")] {
pub struct MDCPUInformation {
pub cpuid: [u64; 2],
_padding: [u32; 2],
}
}
}
cfg_if::cfg_if! {
if #[cfg(target_pointer_width = "64")] {
pub use format::LINK_MAP_64 as MDRawLinkMap;
pub use format::DSO_DEBUG_64 as MDRawDebug;
} else if #[cfg(target_pointer_width = "32")] {
pub use format::LINK_MAP_32 as MDRawLinkMap;
pub use format::DSO_DEBUG_32 as MDRawDebug;
}
}
|