Interface TraceStaticMapping

All Superinterfaces:
TraceUniqueObject
All Known Implementing Classes:
DBTraceStaticMapping

public interface TraceStaticMapping extends TraceUniqueObject
A mapped range from this trace to a Ghidra Program
  • Method Details

    • getTrace

      Trace getTrace()
      Get the "from" trace, i.e., the trace containing this mapping
      Returns:
      the trace
    • getTraceAddressRange

      AddressRange getTraceAddressRange()
      Get the "from" range
      Returns:
      the range
    • getMinTraceAddress

      Address getMinTraceAddress()
      Get the "from" range's minimum address
      Returns:
      the minimum address
    • getMaxTraceAddress

      Address getMaxTraceAddress()
      Get the "from" range's maximum address
      Returns:
      the maximum address
    • getLength

      long getLength()
      Get the length of the mapping, i.e., the length of the range
      Returns:
      the length, where 0 indicates 1 << 64
    • getShift

      long getShift()
      Get the shift in offset from static program to dynamic trace
      Returns:
      the shift
    • getLifespan

      Lifespan getLifespan()
      Get the span of time of the mapping
      Returns:
      the lifespan
    • getStartSnap

      long getStartSnap()
      Get the starting snap of the lifespan
      Returns:
      the start snap
    • getEndSnap

      long getEndSnap()
      Get the ending snap of the lifespan
      Returns:
      the end snap
    • getStaticProgramURL

      URL getStaticProgramURL()
      Get the Ghidra URL of the "to" Program, i.e., static image
      Returns:
      the program URL
    • getStaticAddress

      String getStaticAddress()
      Get the "to" address range's minimum address, as a string
      Returns:
      the address string
    • delete

      void delete()
      Remove this mapping from the "from" trace
    • conflictsWith

      boolean conflictsWith(AddressRange range, Lifespan lifespan, URL toProgramURL, String toAddress)
      Check if this mapping would conflict with the given prospective mapping
      Parameters:
      range - the range in the trace ("from")
      lifespan - the span of time in the trace
      toProgramURL - the (Ghidra) URL of the static image ("to")
      toAddress - the starting address (in string form) in the staic image ("to")
      Returns:
      true if this mapping conflicts.
      See Also: