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 ICodeUnit
getPotentialDebuggee
(IDebuggerUnit manager, long memoryAddress) Retrieve theICodeUnit
that may contains the long memory Address.
If there is only one potential debuggee, it is returned.static boolean
static 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 boolean
Fast 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 theICodeUnit
that 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
-