Skip to content
Snippets Groups Projects
Verified Commit 40449d32 authored by jD91mZM2's avatar jD91mZM2
Browse files

Allow catching int3

parent ad5f3814
No related branches found
No related tags found
1 merge request!107Ptrace overhaul & bitflags
......@@ -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, {
......
Subproject commit 75a1e6f970bad42c7460b8164e59028c61eaf645
Subproject commit bf5e138def0f8ad9c4ce87b8eca2d96b57aef8ea
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment