Allow catching int3

This commit is contained in:
jD91mZM2
2019-07-31 16:43:49 +02:00
parent ad5f3814fa
commit 40449d32b5
2 changed files with 10 additions and 3 deletions

View File

@@ -49,8 +49,15 @@ interrupt_stack!(non_maskable, stack, {
interrupt_stack!(breakpoint, stack, {
println!("Breakpoint trap");
stack.dump();
ksignal(SIGTRAP);
let guard = ptrace::set_process_regs(stack);
if ptrace::breakpoint_callback(PTRACE_STOP_BREAKPOINT, None).is_none() {
drop(guard);
stack.dump();
ksignal(SIGTRAP);
}
});
interrupt_stack!(overflow, stack, {

Submodule syscall updated: 75a1e6f970...bf5e138def