Allow accessing execution state in middleware breakpoint handlers.

This commit is contained in:
losfair
2019-10-13 20:51:39 +08:00
parent 128b006bf7
commit b0b0983eb8
3 changed files with 36 additions and 16 deletions

View File

@ -3,6 +3,7 @@ use crate::{
backend::{Backend, CacheGen, Compiler, CompilerConfig, Features, Token},
cache::{Artifact, Error as CacheError},
error::{CompileError, CompileResult},
fault::FaultInfo,
module::{ModuleInfo, ModuleInner},
structures::Map,
types::{FuncIndex, FuncSig, SigIndex},
@ -49,7 +50,7 @@ impl fmt::Debug for InternalEvent {
}
pub struct BreakpointInfo<'a> {
pub fault: Option<&'a dyn Any>,
pub fault: Option<&'a FaultInfo>,
}
pub trait ModuleCodeGenerator<FCG: FunctionCodeGenerator<E>, RM: RunnableModule, E: Debug> {