Package ghidra.trace.model.guest
Interface TraceGuestPlatformMappedRange
- All Known Implementing Classes:
DBTraceGuestPlatformMappedRange
public interface TraceGuestPlatformMappedRange
A range of mapped memory from guest platform to host platform
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(TaskMonitor monitor) Delete this mapping entryGet 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 range
-
Method Details
-
getHostPlatform
TracePlatform getHostPlatform()Get the host platform- Returns:
- the host platform
-
getHostRange
AddressRange getHostRange()Get the address range in the host- Returns:
- the host range
-
getGuestPlatform
TraceGuestPlatform getGuestPlatform()Get the guest platform- Returns:
- the guest platform
-
getGuestRange
AddressRange getGuestRange()Get the address range in the guest- Returns:
- the guest range
-
mapHostToGuest
Translate an address from host to guest, if in the host range- Parameters:
hostAddress- the host address- Returns:
- the guest address, or null
-
mapHostToGuest
Translate an address range from host to guest, if wholly contained in the host range- Parameters:
hostRange- the host range- Returns:
- the guest range, or null
-
mapGuestToHost
Translate an address from guest to host, if in the guest range- Parameters:
guestAddress- the guest address- Returns:
- the host address, or null
-
mapGuestToHost
Translate an address range from guest to host, if wholly contained in the guest range- Parameters:
guestRange- the guest range- Returns:
- the host range, or null
-
delete
Delete this mapping entry- Parameters:
monitor- a monitor for cleaning up dependent objects, e.g., code units- Throws:
CancelledException- if the user cancels via the monitor
-