Commit 6ba71e7e authored by jD91mZM2's avatar jD91mZM2

Add ptrace exit breakpoint

parent 0e1e7d5d
Pipeline #5731 passed with stages
in 1 minute and 52 seconds
......@@ -336,7 +336,7 @@ impl DerefMut for PtraceEvent {
#[macro_export]
macro_rules! ptrace_event {
($cause:expr $(, $a:expr $(, $b:expr $(, $c:expr)?)?)?) => {
PtraceEvent {
$crate::data::PtraceEvent {
cause: $cause,
$(a: $a,
$(b: $b,
......
......@@ -124,6 +124,7 @@ bitflags! {
const PTRACE_STOP_SINGLESTEP = 0x0000_0000_0000_0004;
const PTRACE_STOP_SIGNAL = 0x0000_0000_0000_0008;
const PTRACE_STOP_BREAKPOINT = 0x0000_0000_0000_0010;
const PTRACE_STOP_EXIT = 0x0000_0000_0000_0020;
const PTRACE_STOP_MASK = 0x0000_0000_0000_00FF;
const PTRACE_EVENT_CLONE = 0x0000_0000_0000_0100;
......
#![feature(asm)]
#![feature(const_fn)]
#![feature(maybe_uninit)] // remove when Redox updates their rust version
#![feature(const_fn)] // see https://github.com/rust-lang/rfcs/pull/2632
#![cfg_attr(not(test), no_std)]
#[cfg(test)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment