de.michab.simulator
Interface Debugger


public interface Debugger

Represents the interface between the debugger and the processor.

Version:
$Revision: 1.11 $
Author:
Michael G. Binz
See Also:
Processor

Method Summary
 void setProcessor(Processor processor)
          Part of interlock sequence.
 void step(int pc)
          Called by the processor in single step mode.
 

Method Detail

setProcessor

public void setProcessor(Processor processor)
Part of interlock sequence. Gets called from the processor on setting the debugger. In case a debugger instance is removed from a processor it will receive this call with a null argument.

Parameters:
processor - The processor that this debugger can control. It is possible to receive null here, meaning that the debugger currently is not linked to a processor and thus not active.

step

public void step(int pc)
Called by the processor in single step mode. The operation doesn't define which thread will execute this callback. In case a user interface is controlled from here take care for possible synchronisation needs.

Parameters:
pc - The current program counter.