Class DBTraceGuestPlatformMappedRange
- All Implemented Interfaces:
TraceGuestPlatformMappedRange
-
Field Summary
FieldsFields inherited from class ghidra.program.database.DatabaseObject
key -
Constructor Summary
ConstructorsConstructorDescriptionDBTraceGuestPlatformMappedRange(DBTracePlatformManager manager, DBCachedObjectStore<?> s, DBRecord r) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(TaskMonitor monitor) Delete this mapping entryprotected static AddressRangedoMapTo(AddressRange range, AddressSpace space, long shift) protected static AddressdoMapTo(Address address, AddressSpace space, long shift) protected voidfresh(boolean created) Extension point: Called when the object's fields are populated.Get the guest platformGet the address range in the guestGet the host platformGet the address range in the hostmapGuestToHost(Address guestAddress) Translate an address from guest to host, if in the guest rangemapGuestToHost(AddressRange guestRange) Translate an address range from guest to host, if wholly contained in the guest rangemapHostToGuest(Address hostAddress) Translate an address from host to guest, if in the host rangemapHostToGuest(AddressRange hostRange) Translate an address range from host to guest, if wholly contained in the host rangeMethods inherited from class ghidra.util.database.DBAnnotatedObject
doRefresh, doUpdateAll, doUpdated, doWrite, getObjectKey, getTableName, isDeleted, refresh, refresh, update, update, update, updateMethods inherited from class ghidra.program.database.DatabaseObject
checkDeleted, checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, setDeleted, setInvalid, validate
-
Field Details
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
DBTraceGuestPlatformMappedRange
public DBTraceGuestPlatformMappedRange(DBTracePlatformManager manager, DBCachedObjectStore<?> s, DBRecord r)
-
-
Method Details
-
fresh
Description copied from class:DBAnnotatedObjectExtension point: Called when the object's fields are populated.This provides an opportunity for the object to initialize any non-database-backed fields that depend on the database-backed fields. Note that its use may indicate a situation better solved by a custom
DBCachedObjectStoreFactory.DBFieldCodec. If both the database-backed and non-database-backed fields are used frequently, then a codec may not be indicated. If the database-backed fields are only used in this method or to encode another frequently-used field, then a codec is likely better.For a new object, the database-backed fields remain at their initial values. They will be saved after this method returns, so they may be further initialized with custom logic.
For an object loaded from the database, the database-backed fields are already populated from the record when this method is called. They are not automatically saved after this method returns. This method should not further initialize database-backed fields in this case.
- Overrides:
freshin classDBAnnotatedObject- Parameters:
created-truewhen object is being created, orfalsewhen it is being loaded.- Throws:
IOException- if further initialization fails.
-
getHostPlatform
Description copied from interface:TraceGuestPlatformMappedRangeGet the host platform- Specified by:
getHostPlatformin interfaceTraceGuestPlatformMappedRange- Returns:
- the host platform
-
getHostRange
Description copied from interface:TraceGuestPlatformMappedRangeGet the address range in the host- Specified by:
getHostRangein interfaceTraceGuestPlatformMappedRange- Returns:
- the host range
-
getGuestPlatform
Description copied from interface:TraceGuestPlatformMappedRangeGet the guest platform- Specified by:
getGuestPlatformin interfaceTraceGuestPlatformMappedRange- Returns:
- the guest platform
-
getGuestRange
Description copied from interface:TraceGuestPlatformMappedRangeGet the address range in the guest- Specified by:
getGuestRangein interfaceTraceGuestPlatformMappedRange- Returns:
- the guest range
-
doMapTo
-
doMapTo
-
mapHostToGuest
Description copied from interface:TraceGuestPlatformMappedRangeTranslate an address from host to guest, if in the host range- Specified by:
mapHostToGuestin interfaceTraceGuestPlatformMappedRange- Parameters:
hostAddress- the host address- Returns:
- the guest address, or null
-
mapHostToGuest
Description copied from interface:TraceGuestPlatformMappedRangeTranslate an address range from host to guest, if wholly contained in the host range- Specified by:
mapHostToGuestin interfaceTraceGuestPlatformMappedRange- Parameters:
hostRange- the host range- Returns:
- the guest range, or null
-
mapGuestToHost
Description copied from interface:TraceGuestPlatformMappedRangeTranslate an address from guest to host, if in the guest range- Specified by:
mapGuestToHostin interfaceTraceGuestPlatformMappedRange- Parameters:
guestAddress- the guest address- Returns:
- the host address, or null
-
mapGuestToHost
Description copied from interface:TraceGuestPlatformMappedRangeTranslate an address range from guest to host, if wholly contained in the guest range- Specified by:
mapGuestToHostin interfaceTraceGuestPlatformMappedRange- Parameters:
guestRange- the guest range- Returns:
- the host range, or null
-
delete
Description copied from interface:TraceGuestPlatformMappedRangeDelete this mapping entry- Specified by:
deletein interfaceTraceGuestPlatformMappedRange- Parameters:
monitor- a monitor for cleaning up dependent objects, e.g., code units- Throws:
CancelledException- if the user cancels via the monitor
-