Trait moa_core::Debuggable

source ·
pub trait Debuggable {
    // Required methods
    fn add_breakpoint(&mut self, addr: Address);
    fn remove_breakpoint(&mut self, addr: Address);
    fn print_current_step(&mut self, system: &System) -> Result<(), Error>;
    fn print_disassembly(
        &mut self,
        system: &System,
        addr: Address,
        count: usize
    );
    fn run_command(
        &mut self,
        system: &System,
        args: &[&str]
    ) -> Result<bool, Error>;
}
Expand description

A device (cpu) that can debugged using the built-in debugger

Required Methods§

source

fn add_breakpoint(&mut self, addr: Address)

source

fn remove_breakpoint(&mut self, addr: Address)

source

fn print_current_step(&mut self, system: &System) -> Result<(), Error>

source

fn print_disassembly(&mut self, system: &System, addr: Address, count: usize)

source

fn run_command(&mut self, system: &System, args: &[&str]) -> Result<bool, Error>

Implementors§