Add debug prototype 2 (fork of wasmtime-debug)

This commit is contained in:
Mark McCaskey
2020-01-31 12:42:09 -08:00
parent 589a99452c
commit 800b2a42cc
20 changed files with 4296 additions and 14 deletions

View File

@ -250,6 +250,7 @@ impl<
cache_gen,
runnable_module: Arc::new(Box::new(exec_context)),
info: Arc::try_unwrap(info).unwrap().into_inner().unwrap(),
debug_info: None,
})
}

View File

@ -20,12 +20,18 @@ use indexmap::IndexMap;
use std::collections::HashMap;
use std::sync::Arc;
#[doc(hidden)]
pub struct DebugInfo {
}
/// This is used to instantiate a new WebAssembly module.
#[doc(hidden)]
pub struct ModuleInner {
pub runnable_module: Arc<Box<dyn RunnableModule>>,
pub cache_gen: Box<dyn CacheGen>,
pub info: ModuleInfo,
pub debug_info: Option<DebugInfo>,
}
/// Container for module data including memories, globals, tables, imports, and exports.