mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-14 06:35:40 +00:00
Preserve fault.ip when calling middleware.
This commit is contained in:
parent
a525907c60
commit
2e532fa66d
@ -272,8 +272,6 @@ extern "C" fn signal_trap_handler(
|
||||
v.backend,
|
||||
std::slice::from_raw_parts(ip as *const u8, magic_size),
|
||||
) {
|
||||
fault.ip.set(ip + magic_size);
|
||||
|
||||
match ib.ty {
|
||||
InlineBreakpointType::Trace => {}
|
||||
InlineBreakpointType::Middleware => {
|
||||
@ -292,6 +290,8 @@ extern "C" fn signal_trap_handler(
|
||||
}
|
||||
_ => println!("Unknown breakpoint type: {:?}", ib.ty),
|
||||
}
|
||||
|
||||
fault.ip.set(ip + magic_size);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user