Class DebuggerStaticMappingService.MappedAddressRange

java.lang.Object
ghidra.app.services.DebuggerStaticMappingService.MappedAddressRange
All Implemented Interfaces:
Comparable<DebuggerStaticMappingService.MappedAddressRange>
Enclosing interface:
DebuggerStaticMappingService

public static class DebuggerStaticMappingService.MappedAddressRange extends Object implements Comparable<DebuggerStaticMappingService.MappedAddressRange>
A pair for describing sets of mapped addresses

Note, the natural order is by the destination address.

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getShift

      public long getShift()
      Get the shift from the source address range to this address range

      The meaning depends on what returned this view. If this view is the "static" range, then this shift describes what was added to the offset of the "dynamic" address to get a particular address in the "static" range.

      Returns:
      the shift
    • mapSourceToDestination

      public Address mapSourceToDestination(Address saddr)
      Map an address in the source range to the corresponding address in the destination range
      Parameters:
      saddr - the source address (not validated)
      Returns:
      the destination address
    • mapDestinationToSource

      public Address mapDestinationToSource(Address daddr)
      Map an address in the destination range to the corresponding address in the source range
      Parameters:
      daddr - the destination address (not validated)
      Returns:
      the source address
    • mapSourceToDestination

      public AddressRange mapSourceToDestination(AddressRange srng)
      Map a sub-range of the source to the corresponding sub-range of the destination
      Parameters:
      srng - the source sub-range
      Returns:
      the destination sub-range
    • mapDestinationToSource

      public AddressRange mapDestinationToSource(AddressRange drng)
      Map a sub-range of the destination to the corresponding sub-range of the source
      Parameters:
      drng - the destination sub-range
      Returns:
      the source sub-range
    • getSourceAddressRange

      public AddressRange getSourceAddressRange()
      Get the source address range
      Returns:
      the address range
    • getDestinationAddressRange

      public AddressRange getDestinationAddressRange()
      Get the destination address range
      Returns:
      the address range
    • compareTo

      Specified by:
      compareTo in interface Comparable<DebuggerStaticMappingService.MappedAddressRange>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object