Struct minidump::MinidumpContext
[−]
[src]
pub struct MinidumpContext { pub raw: MinidumpRawContext, pub valid: MinidumpContextValidity, }
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
.
Methods
impl MinidumpContext
[src]
fn from_raw(raw: MinidumpRawContext) -> MinidumpContext
[src]
Return a MinidumpContext given a MinidumpRawContext
.
fn read<T: Readable>(
f: &mut T,
location: &MDLocationDescriptor
) -> Result<MinidumpContext, ContextError>
[src]
f: &mut T,
location: &MDLocationDescriptor
) -> Result<MinidumpContext, ContextError>
Read a MinidumpContext
from a file.
fn get_instruction_pointer(&self) -> u64
[src]
fn get_stack_pointer(&self) -> u64
[src]
fn format_register(&self, reg: &str) -> String
[src]
fn general_purpose_registers(&self) -> &'static [&'static str]
[src]
fn print<T: Write>(&self, f: &mut T) -> Result<()>
[src]
Write a human-readable description of this MinidumpContext
to f
.
This is very verbose, it is the format used by minidump_dump
.
Trait Implementations
impl Clone for MinidumpContext
[src]
fn clone(&self) -> MinidumpContext
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more