Debian Codegraph @

third_party/rust/minidump-writer/src/linux/crash_context.rs

raw
1 //! Minidump defines register structures which are different from the raw
2 //! structures which we get from the kernel. These are platform specific
3 //! functions to juggle the `ucontext_t` and user structures into minidump format.
4
5 pub struct CrashContext {
6 pub inner: crash_context::CrashContext,
7 }
8
9 cfg_if::cfg_if! {
10 if #[cfg(target_arch = "x86_64")] {
11 mod x86_64;
12 } else if #[cfg(target_arch = "x86")] {
13 mod x86;
14 } else if #[cfg(target_arch = "aarch64")] {
15 mod aarch64;
16 } else if #[cfg(target_arch = "arm")] {
17 mod arm;
18 }
19 }