Class AddressConversionLists
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.AddressConversionLists
IR-offset to/from native-address conversion lists.
Note that the native addresses mapping from an IR statement are stored in the IR itself (see
IEStatement.getLowerLevelAddresses()
). However, a complete mapping, for an entire IR CFG
or statements list, may be built using the static methods offered by this class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertIntermediateOffset
(int offset) convertNativeAddress
(long address) static String
static AddressConversionLists
generateFromCFG
(CFG<IEStatement> cfg) Generate conversion lists from a CFG.static AddressConversionLists
generateFromList
(List<IEStatement> stmlist) getIntermediateOffsetsMappingToNativeAddress
(long address) getNativeAddressesMappingToIntermediateOffset
(int offset) void
record
(long nativeAddress, int irOffset) toString()
-
Constructor Details
-
AddressConversionLists
-
-
Method Details
-
record
public void record(long nativeAddress, int irOffset) -
getNativeToInter
-
convertNativeAddress
-
getInterToNative
-
convertIntermediateOffset
-
getIntermediateOffsetsMappingToNativeAddress
-
getNativeAddressesMappingToIntermediateOffset
-
toString
-
formatConversionLists
-
generateFromCFG
Generate conversion lists from a CFG.- Parameters:
cfg
- a CFG- Returns:
- a conversion-lists object containing IR<>Native mapping information
- Throws:
IllegalStateException
- in DEBUG mode only, if the CFG and/or its statements contain inconsistencies
-
generateFromList
-