Class AbstractDebuggerBreakpoint

java.lang.Object
com.pnfsoftware.jeb.core.units.code.debug.impl.AbstractDebuggerBreakpoint
All Implemented Interfaces:
IDebuggerBreakpoint

public abstract class AbstractDebuggerBreakpoint extends Object implements IDebuggerBreakpoint
Standard implementation of a breakpoint.
  • Field Details

    • dbgAddress

      protected String dbgAddress
      Debugger-relative breakpoint address.
    • ua

      protected UnitAddress<ICodeUnit> ua
      Unit-relative breakpoint address.
    • flags

      protected int flags
      Breakpoint flags.
  • Constructor Details

    • AbstractDebuggerBreakpoint

      public AbstractDebuggerBreakpoint(String dbgAddress, UnitAddress<ICodeUnit> ua)
      Create a breakpoint.
      Parameters:
      dbgAddress - debugger-relative address
      ua - target-unit-relative address
  • Method Details

    • getAddress

      public String getAddress()
      Description copied from interface: IDebuggerBreakpoint
      Get the breakpoint address relative to the debugger itself. Unlike IDebuggerBreakpoint.getUnitAddress(), this method should never return null.
      Specified by:
      getAddress in interface IDebuggerBreakpoint
      Returns:
      debugger-relative breakpoint address
    • setAddress

      protected void setAddress(String address)
      Set the debugger-relative address.
      Parameters:
      address - debugger-relative address
    • getUnitAddress

      public UnitAddress<ICodeUnit> getUnitAddress()
      Description copied from interface: IDebuggerBreakpoint
      Get the breakpoint address relative to the unit from which the breakpoint belongs, if possible. This method may return null: it is possible that a breakpoint is not located within any unit processed within a JEB project.;
      Specified by:
      getUnitAddress in interface IDebuggerBreakpoint
      Returns:
      unit-relative breakpoint address, or null
    • setUnitAddress

      protected void setUnitAddress(UnitAddress<ICodeUnit> ua)
      Set the unit-relative address.
      Parameters:
      ua - unit-relative address
    • getFlags

      public int getFlags()
      Description copied from interface: IDebuggerBreakpoint
      Retrieve the optional breakpoint flags.
      Specified by:
      getFlags in interface IDebuggerBreakpoint
      Returns:
      0 (default), or a combination of BREAK_ON_xxx flags
    • toString

      public String toString()
      Overrides:
      toString in class Object