com.github.croesch.micro_debug.debug
Class BreakpointManager

java.lang.Object
  extended by com.github.croesch.micro_debug.debug.BreakpointManager

public final class BreakpointManager
extends Object

A manager for break points in the debugger.

Since:
Date: Jan 27, 2012
Author:
croesch

Constructor Summary
BreakpointManager()
           
 
Method Summary
 void addMacroBreakpoint(Integer line)
          Adds a breakpoint for the given line number in the macro code.
 void addMicroBreakpoint(Integer line)
          Adds a breakpoint for the given line number in the micro code.
 void addRegisterBreakpoint(Register r, Integer val)
          Adds a breakpoint for the given Register and the given value.
 boolean isBreakpoint(int microLine, int macroLine)
          Returns whether any break point condition is met.
 void listBreakpoints()
          Lists all breakpoints.
 void removeBreakpoint(int id)
          Removes the breakpoint with the given unique id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreakpointManager

public BreakpointManager()
Method Detail

isBreakpoint

public boolean isBreakpoint(int microLine,
                            int macroLine)
Returns whether any break point condition is met.

Parameters:
microLine - the number of the line in micro code being executed next
macroLine - the number of the line in macro code being executed next
Returns:
true if a break point is met,
false otherwise
Since:
Date: Jan 27, 2012

addRegisterBreakpoint

public void addRegisterBreakpoint(Register r,
                                  Integer val)
Adds a breakpoint for the given Register and the given value.

Parameters:
r - the Register to watch for the given value
val - the value the debugger should break if the given Register has it.
Since:
Date: Jan 27, 2012

addMicroBreakpoint

public void addMicroBreakpoint(Integer line)
Adds a breakpoint for the given line number in the micro code.

Parameters:
line - the line number in micro code the debugger should break at
Since:
Date: Feb 4, 2012

addMacroBreakpoint

public void addMacroBreakpoint(Integer line)
Adds a breakpoint for the given line number in the macro code.

Parameters:
line - the line number in macro code the debugger should break at
Since:
Date: Feb 4, 2012

removeBreakpoint

public void removeBreakpoint(int id)
Removes the breakpoint with the given unique id.

Parameters:
id - the unique id of the breakpoint to remove
Since:
Date: Jan 30, 2012

listBreakpoints

public void listBreakpoints()
Lists all breakpoints.

Since:
Date: Jan 28, 2012


Copyright © 2012. All Rights Reserved.