Package ghidra.debug.api.modules
Interface ModuleMapProposal.ModuleMapEntry
- All Superinterfaces:
MapEntry<TraceModule,Program>
- Enclosing interface:
ModuleMapProposal
-
Method Summary
Modifier and TypeMethodDescriptionGet the module for this entryGet the module name for this entry (may depend on the snap)Get the address range of the module in the trace, as computed from the matched program's image sizebooleanCheck if the user would like to memorize this mapping for future tracesvoidsetMemorize(boolean memorize) Set whether this mapping should be memorized for future tracesvoidsetProgram(Program program) Set the matched programMethods inherited from interface ghidra.debug.api.modules.MapEntry
getFromLifespan, getFromObject, getFromRange, getFromTrace, getFromTraceLocation, getMappingLength, getToObject, getToProgram, getToProgramLocation, getToRange
-
Method Details
-
getModule
TraceModule getModule()Get the module for this entry- Returns:
- the module
-
getModuleName
String getModuleName()Get the module name for this entry (may depend on the snap)- Returns:
- the name
-
getModuleRange
AddressRange getModuleRange()Get the address range of the module in the trace, as computed from the matched program's image size- Returns:
- the module range
-
setProgram
Set the matched programThis is generally used in UIs to let the user tweak and reassign, if desired. This will also re-compute the module range based on the new program's image size.
- Parameters:
program- the program
-
isMemorize
boolean isMemorize()Check if the user would like to memorize this mapping for future traces- Returns:
- true to memorize
-
setMemorize
void setMemorize(boolean memorize) Set whether this mapping should be memorized for future traces- Parameters:
memorize- true to memorize
-