Allow catching int3
This commit is contained in:
@@ -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, {
|
||||
|
||||
2
syscall
2
syscall
Submodule syscall updated: 75a1e6f970...bf5e138def
Reference in New Issue
Block a user