diff options
Diffstat (limited to 'third_party/rust/minidump-writer/src/linux/crash_context.rs')
-rw-r--r-- | third_party/rust/minidump-writer/src/linux/crash_context.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/rust/minidump-writer/src/linux/crash_context.rs b/third_party/rust/minidump-writer/src/linux/crash_context.rs new file mode 100644 index 0000000000..f7a554d110 --- /dev/null +++ b/third_party/rust/minidump-writer/src/linux/crash_context.rs @@ -0,0 +1,19 @@ +//! Minidump defines register structures which are different from the raw +//! structures which we get from the kernel. These are platform specific +//! functions to juggle the `ucontext_t` and user structures into minidump format. + +pub struct CrashContext { + pub inner: crash_context::CrashContext, +} + +cfg_if::cfg_if! { + if #[cfg(target_arch = "x86_64")] { + mod x86_64; + } else if #[cfg(target_arch = "x86")] { + mod x86; + } else if #[cfg(target_arch = "aarch64")] { + mod aarch64; + } else if #[cfg(target_arch = "arm")] { + mod arm; + } +} |