Struct minidump::MinidumpContext [−][src]
pub struct MinidumpContext {
pub raw: MinidumpRawContext,
pub valid: MinidumpContextValidity,
}
Expand description
CPU context such as register states.
MinidumpContext carries a CPU-specific MDRawContext structure, which contains CPU context such as register states. Each thread has its own context, and the exception record, if present, also has its own context. Note that if the exception record is present, the context it refers to is probably what the user wants to use for the exception thread, instead of that thread’s own context. The exception thread’s context (as opposed to the exception record’s context) will contain context for the exception handler (which performs minidump generation), and not the context that caused the exception (which is probably what the user wants).
Fields
raw: MinidumpRawContext
The raw CPU register state.
valid: MinidumpContextValidity
Which registers are valid in raw
.
Implementations
Return a MinidumpContext given a MinidumpRawContext
.
pub fn read(
bytes: &[u8],
endian: Endian,
system_info: &MinidumpSystemInfo,
_misc: Option<&MinidumpMiscInfo>
) -> Result<MinidumpContext, ContextError>
pub fn read(
bytes: &[u8],
endian: Endian,
system_info: &MinidumpSystemInfo,
_misc: Option<&MinidumpMiscInfo>
) -> Result<MinidumpContext, ContextError>
Read a MinidumpContext
from bytes
.
pub fn general_purpose_registers(&self) -> &'static [&'static str]ⓘ
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MinidumpContext
impl Send for MinidumpContext
impl Sync for MinidumpContext
impl Unpin for MinidumpContext
impl UnwindSafe for MinidumpContext
Blanket Implementations
Mutably borrows from an owned value. Read more