Class ProgramLocationTranslator

java.lang.Object
ghidra.app.util.viewer.listingpanel.ProgramLocationTranslator

public class ProgramLocationTranslator extends Object
Class for converting a program location from one program to another
  • Constructor Details

    • ProgramLocationTranslator

      public ProgramLocationTranslator(ListingAddressCorrelation correlator)
      Constructor given a correlator for translating addresses
      Parameters:
      correlator - converts address from one program to another
  • Method Details

    • getProgramLocation

      public ProgramLocation getProgramLocation(Duo.Side side, ProgramLocation otherSideLocation)
      Converts a program location from the other side to the given side.
      Parameters:
      side - the side to get a location for
      otherSideLocation - the location from the other side
      Returns:
      a program location for the given side that matches the other given location