Browse Source
* Plumb coredump feature to `wasmtime-runtime` The `wasmtime` crate already has a `coredump` feature but whether or not it's enabled the `wasmtime-runtime` crate still captures a core dump. Use this flag in the `wasmtime` crate to plumb support to `wasmtime-runtime` to skip capture if it's not enabled. * Fix a typopull/8256/head
Alex Crichton
7 months ago
committed by
GitHub
5 changed files with 41 additions and 23 deletions
@ -0,0 +1,16 @@ |
|||
use crate::traphandlers::CallThreadState; |
|||
use crate::VMRuntimeLimits; |
|||
|
|||
/// A WebAssembly Coredump
|
|||
#[derive(Debug)] |
|||
pub enum CoreDumpStack {} |
|||
|
|||
impl CallThreadState { |
|||
pub(super) fn capture_coredump( |
|||
&self, |
|||
_limits: *const VMRuntimeLimits, |
|||
_trap_pc_and_fp: Option<(usize, usize)>, |
|||
) -> Option<CoreDumpStack> { |
|||
None |
|||
} |
|||
} |
Loading…
Reference in new issue