Package ghidra.program.util
Interface ListingAddressCorrelation
- All Known Implementing Classes:
DummyListingAddressCorrelation
,HashedFunctionAddressCorrelation
,LinearAddressCorrelation
public interface ListingAddressCorrelation
This is the interface for a correlator that associates addresses from one program with
addresses from another program or it can associate addresses from one part of a program
with addresses from another part of the same program. Given an address from one program, it
can provide the corresponding address for the other program. The two programs are referred to
as the LEFT program and the RIGHT program. See
Duo.Side
-
Method Summary
Modifier and TypeMethodDescriptiongetAddress
(Duo.Side side, Address otherSideAddress) Gets the address for the given side that matches the given address from the other side.getAddresses
(Duo.Side side) Gets the addresses that are part of the correlator for the given sidegetFunction
(Duo.Side side) Gets the function for the given side.getProgram
(Duo.Side side) Gets the program for the given side.
-
Method Details
-
getProgram
Gets the program for the given side.- Parameters:
side
- LEFT or RIGHT- Returns:
- the program for the given side
-
getFunction
Gets the function for the given side. This will be null if the addresses are not function based.- Parameters:
side
- LEFT or RIGHT- Returns:
- the function for the given side or null if not function based
-
getAddresses
Gets the addresses that are part of the correlator for the given side- Parameters:
side
- LEFT or RIGHT- Returns:
- the addresses that are part of the correlator for the given side
-
getAddress
Gets the address for the given side that matches the given address from the other side.- Parameters:
side
- the side to get an address forotherSideAddress
- the address from the other side to find a match for- Returns:
- the address for the given side that matches the given address from the other side.
-