pub struct PtraceDumper {
    pub pid: Pid,
    pub threads: Vec<Thread>,
    pub auxv: HashMap<u64, u64>,
    pub mappings: Vec<MappingInfo>,
    /* private fields */
}

Fields

pid: Pidthreads: Vec<Thread>auxv: HashMap<u64, u64>mappings: Vec<MappingInfo>

Implementations

Constructs a dumper for extracting information of a given process with a process ID of |pid|.

Copies content of |length| bytes from a given process |child|, starting from |src|, into |dest|. This method uses ptrace to extract the content from the target process. Always returns true.

Suspends a thread by attaching to it.

Resumes a thread by detaching from it.

Read thread info from /proc/$pid/status. Fill out the |tgid|, |ppid| and |pid| members of |info|. If unavailable, these members are set to -1. Returns true if all three members are available.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.