add basic coredump generation (#5868)
This change adds a basic coredump generation after a WebAssembly trap was entered. The coredump includes rudimentary stack / process debugging information. A new CLI argument is added to enable coredump generation: ``` wasmtime --coredump-on-trap=/path/to/coredump/file module.wasm ``` See ./docs/examples-coredump.md for a working example. Refs https://github.com/bytecodealliance/wasmtime/issues/5732
This commit is contained in:
@@ -42,6 +42,7 @@ wat = { workspace = true }
|
||||
serde = "1.0.94"
|
||||
serde_json = "1.0.26"
|
||||
wasmparser = { workspace = true }
|
||||
wasm-coredump-builder = { version = "0.1.11" }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
rustix = { workspace = true, features = ["mm", "param"] }
|
||||
|
||||
Reference in New Issue
Block a user