fn run_to_replay_start(core: &mut Core, timeout: u64) -> Result<()> {
    // Wait for core to halt on a breakpoint. If it doesn't something is wrong.
    core.wait_for_core_halted(std::time::Duration::from_secs(timeout))?;
    loop {
        let imm = core::read_breakpoint_value(core)?;
        // Ready to analyze when reaching this breakpoint
        if imm == OtherBreakpoint::ReplayStart as u8 {
            break;
        }
        // Should there be other breakpoints we continue past them
        core::run(core)?;
    }
    Ok(())
}
/// Runs to where the replay harness starts. Also runs past any other breakpoints
/// on the way, should there be any.
Runs to where the replay harness starts. Also runs past any other breakpoints
on the way, should there be any.
Runs to where the replay harness starts . Also runs past any other breakpoints on the way should there be any .
fn run_to_replay_start(core: &mut Core, timeout: u64) -> Result<()> {
    // Wait for core to halt on a breakpoint. If it doesn't something is wrong.
    core.wait_for_core_halted(std::time::Duration::from_secs(timeout))?;
    loop {
        let imm = core::read_breakpoint_value(core)?;
        // Ready to analyze when reaching this breakpoint
        if imm == OtherBreakpoint::ReplayStart as u8 {
            break;
        }
        // Should there be other breakpoints we continue past them
        core::run(core)?;
    }
    Ok(())
}
fn run_to_replay_start ( core : & mut Core , timeout : u64 ) -> Result < ( ) > { // Wait for core to halt on a breakpoint. If it doesn't something is wrong. core . wait_for_core_halted ( std :: time :: Duration :: from_secs ( timeout ) ) ? ; loop { let imm = core :: read_breakpoint_value ( core ) ? ; // Ready to analyze when reaching this breakpoint if imm == OtherBreakpoint :: ReplayStart as u8 { break ; } // Should there be other breakpoints we continue past them core :: run ( core ) ? ; } Ok ( ( ) ) }
Runs to where the replay harness starts.
Runs to where the replay harness starts .
core
&mut Core
timeout
u64
core
&mut Core
timeout
u64