Class AbstractDebuggerBreakpoint
java.lang.Object
com.pnfsoftware.jeb.core.units.code.debug.impl.AbstractDebuggerBreakpoint
- All Implemented Interfaces:
IDebuggerBreakpoint
Standard implementation of a breakpoint.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDebugger-relative breakpoint address.protected intBreakpoint flags.protected UnitAddress<ICodeUnit> Unit-relative breakpoint address.Fields inherited from interface com.pnfsoftware.jeb.core.units.code.debug.IDebuggerBreakpoint
BREAK_DEFAULT, BREAK_ON_READ, BREAK_ON_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDebuggerBreakpoint(String dbgAddress, UnitAddress<ICodeUnit> ua) Create a breakpoint. -
Method Summary
Modifier and TypeMethodDescriptionGet the breakpoint address relative to the debugger itself.intgetFlags()Retrieve the optional breakpoint flags.Get the breakpoint address relative to the unit from which the breakpoint belongs, if possible.protected voidsetAddress(String address) Set the debugger-relative address.protected voidSet the unit-relative address.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.pnfsoftware.jeb.core.units.code.debug.IDebuggerBreakpoint
isEnabled, setEnabled
-
Field Details
-
dbgAddress
Debugger-relative breakpoint address. -
ua
Unit-relative breakpoint address. -
flags
protected int flagsBreakpoint flags.
-
-
Constructor Details
-
AbstractDebuggerBreakpoint
Create a breakpoint.- Parameters:
dbgAddress- debugger-relative addressua- target-unit-relative address
-
-
Method Details
-
getAddress
Description copied from interface:IDebuggerBreakpointGet the breakpoint address relative to the debugger itself. UnlikeIDebuggerBreakpoint.getUnitAddress(), this method should never return null.- Specified by:
getAddressin interfaceIDebuggerBreakpoint- Returns:
- debugger-relative breakpoint address
-
setAddress
Set the debugger-relative address.- Parameters:
address- debugger-relative address
-
getUnitAddress
Description copied from interface:IDebuggerBreakpointGet 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:
getUnitAddressin interfaceIDebuggerBreakpoint- Returns:
- unit-relative breakpoint address, or null
-
setUnitAddress
Set the unit-relative address.- Parameters:
ua- unit-relative address
-
getFlags
public int getFlags()Description copied from interface:IDebuggerBreakpointRetrieve the optional breakpoint flags.- Specified by:
getFlagsin interfaceIDebuggerBreakpoint- Returns:
- 0 (default), or a combination of
BREAK_ON_xxxflags
-
toString
-