Interface INativeContext
- All Known Subinterfaces:
INativeCodeUnit<InsnType>
Native code context. The context is a super-interface of the
INativeCodeUnit and allows
the implementation of test disassemblers outside of the unit management facility.-
Method Summary
Modifier and TypeMethodDescriptioncreateMethodReference(String name, IPrototypeItem prototype, INativeMethodDataItem methodData) intgetDynamicBranchResolution(long address) getField(long address) longRetrieve the size of the imagegetNativeItemAt(long address) Retrieve the native continuous memory item (a variable, an instruction) starting at the provided address.getNativeItemOver(long address) Retrieve the native continuous memory item (a variable, an instruction) spanning over the provided address.IProcessor<?>Retrieve the machine code parser (pseudo-processor).getRoutine(long address) getRoutineByName(String name) getRoutineOver(long address) longRetrieve the virtual image base.booleanrecordDynamicBranchTarget(long instructionAddress, boolean resolved, IBranchTarget target) voidvoidtrackNativeItem(INativeType type, IEventListener listener)
-
Method Details
-
getCodeContainerType
int getCodeContainerType()- Returns:
- 0=unknown, 1=ELF, 2=PE
-
getSubsystemType
SubsystemType getSubsystemType() -
getDetectedCompiler
ICompiler getDetectedCompiler() -
trackNativeItem
-
getProcessor
IProcessor<?> getProcessor()Retrieve the machine code parser (pseudo-processor).- Returns:
-
getMemory
IVirtualMemory getMemory() -
getTypeManager
ITypeManager getTypeManager() -
getVirtualImageBase
long getVirtualImageBase()Retrieve the virtual image base. This virtual address is the reference for every memory access.- Returns:
- the virtual image base
-
getImageSize
long getImageSize()Retrieve the size of the image- Returns:
-
getRoutines
List<INativeMethodItem> getRoutines() -
getRoutine
-
getRoutineOver
-
getRoutineByName
-
getFields
List<INativeFieldItem> getFields() -
getField
-
getNativeItemAt
Retrieve the native continuous memory item (a variable, an instruction) starting at the provided address.- Parameters:
address-- Returns:
-
getNativeItemOver
Retrieve the native continuous memory item (a variable, an instruction) spanning over the provided address.- Parameters:
address-- Returns:
-
createMethodReference
INativeMethodItem createMethodReference(String name, IPrototypeItem prototype, INativeMethodDataItem methodData) -
getDynamicBranchResolution
-
recordDynamicBranchTarget
-
requestRoutineReanalysis
-