Bkpt* -> Breakpoint*

This commit is contained in:
losfair
2019-07-04 01:45:06 +08:00
parent 7f28a4dbef
commit f32b22d571
6 changed files with 18 additions and 18 deletions

View File

@ -17,8 +17,8 @@ use std::sync::{Arc, RwLock};
use wasmparser::{self, WasmDecoder};
use wasmparser::{Operator, Type as WpType};
pub type BkptHandler = Box<Fn(BkptInfo) -> Result<(), Box<dyn Any>> + Send + Sync + 'static>;
pub type BkptMap = Arc<HashMap<usize, BkptHandler>>;
pub type BreakpointHandler = Box<Fn(BreakpointInfo) -> Result<(), Box<dyn Any>> + Send + Sync + 'static>;
pub type BreakpointMap = Arc<HashMap<usize, BreakpointHandler>>;
#[derive(Debug)]
pub enum Event<'a, 'b> {
@ -30,7 +30,7 @@ pub enum Event<'a, 'b> {
pub enum InternalEvent {
FunctionBegin(u32),
FunctionEnd,
Breakpoint(BkptHandler),
Breakpoint(BreakpointHandler),
SetInternal(u32),
GetInternal(u32),
}
@ -47,7 +47,7 @@ impl fmt::Debug for InternalEvent {
}
}
pub struct BkptInfo<'a> {
pub struct BreakpointInfo<'a> {
pub fault: Option<&'a dyn Any>,
}