Class DebuggerUtil
java.lang.Object
com.pnfsoftware.jeb.core.units.code.debug.impl.DebuggerUtil
Utility methods for
IDebuggerUnit.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ICodeUnitgetPotentialDebuggee(IDebuggerUnit manager, long memoryAddress) Retrieve theICodeUnitthat may contains the long memory Address.
If there is only one potential debuggee, it is returned.static booleanstatic byte[]readMemorySafe(IDebuggerUnit unit, long address, int maxlength) Read exact memory data at specified address.static byte[]readMemoryStringSafe(IDebuggerUnit unit, long address, int length) Temporarily disabled.static booleanFast test equality between two variable values.
-
Constructor Details
-
DebuggerUtil
public DebuggerUtil()
-
-
Method Details
-
readMemoryStringSafe
Temporarily disabled. Same asreadMemorySafe(IDebuggerUnit, long, int). -
readMemorySafe
Read exact memory data at specified address. The result length can be different from length if some data is not accessible or does not exist.- Parameters:
unit- debuggeraddress- base addressmaxlength- wanted length (max)- Returns:
- null on error, else the memory data buffer, whose size will be in [0, length]
-
getPotentialDebuggee
Retrieve theICodeUnitthat may contains the long memory Address.
If there is only one potential debuggee, it is returned. Otherwise, it searches for a potential debuggee which manages long memory address (for exampleINativeCodeUnit). -
isNativeCodeDebugger
- Parameters:
unit-- Returns:
-
valueEquals
Fast test equality between two variable values. Faster than usingIDebuggerVariable.getTypedValue()because it can bypass some data retrieval.- Parameters:
va- first variablevb- second variable- Returns:
- true when variable share the same value
-