Trait emulator_hal::Debug

source ·
pub trait Debug<Address, Bus, Writer>: Inspect<Address, Bus, Writer> + Step<Address, Bus>
where Address: Copy, Bus: BusAccess<Address>, Writer: Write,
{ type DebugError; // Required methods fn get_execution_address(&mut self) -> Result<Address, Self::DebugError>; fn set_execution_address( &mut self, address: Address ) -> Result<(), Self::DebugError>; fn add_breakpoint(&mut self, address: Address); fn remove_breakpoint(&mut self, address: Address); fn clear_breakpoints(&mut self); }
Expand description

Control the execution of a CPU device for debugging purposes

Required Associated Types§

source

type DebugError

Represents an error that can occur while debugging

Required Methods§

source

fn get_execution_address(&mut self) -> Result<Address, Self::DebugError>

Returns the Address where execution will take place the next time step() is called

source

fn set_execution_address( &mut self, address: Address ) -> Result<(), Self::DebugError>

Sets the Address where execution will take place the next time step() is called

source

fn add_breakpoint(&mut self, address: Address)

Add a breakpoint

source

fn remove_breakpoint(&mut self, address: Address)

Remove a breakpoint

source

fn clear_breakpoints(&mut self)

Clear all breakpoints

Implementors§