Struct cargo_tarpaulin::breakpoint::Breakpoint
[−]
[src]
pub struct Breakpoint { pub pc: u64, // some fields omitted }
Breakpoint construct used to monitor program execution. As tarpaulin is an automated process, this will likely have less functionality than most breakpoint implementations.
Fields
pc: u64
Program counter
Methods
impl Breakpoint
[src]
fn new(pid: Pid, pc: u64) -> Result<Breakpoint>
[src]
Creates a new breakpoint for the given process and program counter.
fn enable(&mut self, pid: Pid) -> Result<c_long>
[src]
Attaches the current breakpoint.
fn process(&mut self, pid: Pid, reenable: bool) -> Result<bool>
[src]
Processes the breakpoint. This steps over the breakpoint
fn thread_killed(&mut self, pid: Pid)
[src]
Call this when a ptrace thread is killed. Won't reenable the breakpoint so may lose the ability to instrument this line.