Package ghidra.app.util
Class XReferenceUtil
java.lang.Object
ghidra.app.util.XReferenceUtil
Deprecated.
deprecated for 10.1; removal for 10.3 or later
A utility class to handle the generation of direct and offcut cross-reference (xref) lists
on code units and stack variables.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllXrefs
(ProgramLocation location) Deprecated.Returns all xrefs to the given location.static int
Deprecated.Returns the count of all offcut xref addresses to the specified code unitstatic final Reference[]
getOffcutXReferences
(CodeUnit cu, int maxXRefs) Deprecated.Returns an array containing all offcut xref references to the specified code unitstatic final Address[]
Deprecated.Returns an array containing all offcut xref addresses to the specified code unit.static final Address[]
getOffcutXRefList
(CodeUnit cu, int maxXRefs) Deprecated.Returns an array containing all offcut xref addresses to the specified code unit.getVariableRefs
(Variable var) Deprecated.Returns the direct and offcut xrefs to the specified variablestatic void
Deprecated.Populates the provided lists with the direct and offcut xrefs to the specified variablestatic final Reference[]
getXReferences
(CodeUnit cu, int maxNumber) Deprecated.Returns an array containing the firstmaxNumber
direct xref references to the specified code unit.static final Address[]
getXRefList
(CodeUnit cu) Deprecated.Returns an array containing all direct xref addresses to the specified code unit.static final Address[]
getXRefList
(CodeUnit cu, int maxNumber) Deprecated.Returns an array containing the firstmaxNumber
direct xref addresses to the specified code unit.static void
showAllXrefs
(Navigatable navigatable, ServiceProvider serviceProvider, TableService service, ProgramLocation location, Set<Reference> xrefs) Deprecated.Shows all xrefs to the given location in a new table.
-
Field Details
-
ALL_REFS
public static final int ALL_REFSDeprecated.- See Also:
-
-
Constructor Details
-
XReferenceUtil
public XReferenceUtil()Deprecated.
-
-
Method Details
-
getXRefList
Deprecated.Returns an array containing all direct xref addresses to the specified code unit.- Parameters:
cu
- the code unit to generate the xrefs- Returns:
- array of all xrefs to the code unit
-
getXRefList
Deprecated.Returns an array containing the firstmaxNumber
direct xref addresses to the specified code unit.- Parameters:
cu
- the code unit to generate the xrefsmaxNumber
- max number of xrefs to get, or -1 to get all references- Returns:
- array first
maxNumber
xrefs to the code unit
-
getXReferences
Deprecated.Returns an array containing the firstmaxNumber
direct xref references to the specified code unit.- Parameters:
cu
- the code unit to generate the xrefsmaxNumber
- max number of xrefs to get, or -1 to get all references- Returns:
- array first
maxNumber
xrefs to the code unit
-
getOffcutXRefList
Deprecated.Returns an array containing all offcut xref addresses to the specified code unit.- Parameters:
cu
- the code unit to generate the offcut xrefs- Returns:
- array of all offcut xrefs to the code unit
-
getOffcutXRefList
Deprecated.Returns an array containing all offcut xref addresses to the specified code unit.- Parameters:
cu
- the code unit to generate the offcut xrefsmaxXRefs
- max number of offcut xrefs to get, or -1 to get all offcut references- Returns:
- array of all offcut xrefs to the code unit
-
getOffcutXReferences
Deprecated.Returns an array containing all offcut xref references to the specified code unit- Parameters:
cu
- the code unit to generate the offcut xrefsmaxXRefs
- max number of offcut xrefs to get, or -1 to get all offcut references- Returns:
- array of all offcut xrefs to the code unit
-
getOffcutXRefCount
Deprecated.Returns the count of all offcut xref addresses to the specified code unit- Parameters:
cu
- the code unit to generate the offcut xrefs- Returns:
- count of all offcut xrefs to the code unit
-
getVariableRefs
Deprecated.Populates the provided lists with the direct and offcut xrefs to the specified variable- Parameters:
var
- variable to get referencesxrefs
- list to put direct references inoffcuts
- list to put offcut references in
-
getVariableRefs
Deprecated.Returns the direct and offcut xrefs to the specified variable- Parameters:
var
- variable to get references- Returns:
- the set of references
-
getAllXrefs
Deprecated.Returns all xrefs to the given location. If in data, then xrefs to the specific data component will be returned. Otherwise, the code unit containing the address of the given location will be used as the source of the xrefs.- Parameters:
location
- the location for which to get xrefs- Returns:
- the xrefs
-