Trait emulator_hal::Debug
source · pub trait Debug<Address, Bus, Writer>: Inspect<Address, Bus, Writer> + Step<Address, Bus>{
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§
sourcetype DebugError
type DebugError
Represents an error that can occur while debugging
Required Methods§
sourcefn get_execution_address(&mut self) -> Result<Address, Self::DebugError>
fn get_execution_address(&mut self) -> Result<Address, Self::DebugError>
Returns the Address
where execution will take place the next time step()
is called
sourcefn set_execution_address(
&mut self,
address: Address
) -> Result<(), Self::DebugError>
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
sourcefn add_breakpoint(&mut self, address: Address)
fn add_breakpoint(&mut self, address: Address)
Add a breakpoint
sourcefn remove_breakpoint(&mut self, address: Address)
fn remove_breakpoint(&mut self, address: Address)
Remove a breakpoint
sourcefn clear_breakpoints(&mut self)
fn clear_breakpoints(&mut self)
Clear all breakpoints