Struct minidump::MinidumpThread
source · pub struct MinidumpThread<'a> {
pub raw: MINIDUMP_THREAD,
/* private fields */
}
Expand description
The state of a thread from the process when the minidump was written.
Fields§
§raw: MINIDUMP_THREAD
The MINIDUMP_THREAD
direct from the minidump file.
Implementations§
source§impl<'a> MinidumpThread<'a>
impl<'a> MinidumpThread<'a>
pub fn context(
&self,
system_info: &MinidumpSystemInfo,
misc: Option<&MinidumpMiscInfo>
) -> Option<Cow<'_, MinidumpContext>>
pub fn stack_memory(
&self,
memory_list: &MinidumpMemoryList<'a>
) -> Option<Cow<'_, MinidumpMemory<'a>>>
sourcepub fn print<T: Write>(
&self,
f: &mut T,
memory: Option<&MinidumpMemoryList<'a>>,
system: Option<&MinidumpSystemInfo>,
misc: Option<&MinidumpMiscInfo>,
brief: bool
) -> Result<()>
pub fn print<T: Write>(
&self,
f: &mut T,
memory: Option<&MinidumpMemoryList<'a>>,
system: Option<&MinidumpSystemInfo>,
misc: Option<&MinidumpMiscInfo>,
brief: bool
) -> Result<()>
Write a human-readable description of this MinidumpThread
to f
.
This is very verbose, it is the format used by minidump_dump
.
sourcepub fn last_error(
&self,
cpu: Cpu,
memory: &MinidumpMemoryList<'_>
) -> Option<CrashReason>
pub fn last_error(
&self,
cpu: Cpu,
memory: &MinidumpMemoryList<'_>
) -> Option<CrashReason>
Gets the last error code the thread recorded, just like win32’s GetLastError.
The value is heuristically converted into a CrashReason because that’s our general error code handling machinery, even though this may not actually be the reason for the crash!