Class SameDirSearchLocation
java.lang.Object
ghidra.app.util.bin.format.dwarf.external.SameDirSearchLocation
- All Implemented Interfaces:
SearchLocation
A
SearchLocation
that only looks in the program's original import directory.-
Constructor Summary
ConstructorDescriptionSameDirSearchLocation
(File progDir) Creates a newSameDirSearchLocation
at the specified location. -
Method Summary
Modifier and TypeMethodDescriptionstatic SameDirSearchLocation
create
(String locString, SearchLocationCreatorContext context) Creates a newSameDirSearchLocation
instance using the current program's import location.findDebugFile
(ExternalDebugInfo debugInfo, TaskMonitor monitor) Searchs for a debug file that fulfills the criteria specified in theExternalDebugInfo
.Returns a human formatted string describing this location, used in UI prompts or lists.getName()
Returns the name of this instance, which should be a serialized copy of this instance.static boolean
isSameDirSearchLocation
(String locString) Returns true if the specified location string specifies a SameDirSearchLocation.
-
Constructor Details
-
SameDirSearchLocation
Creates a newSameDirSearchLocation
at the specified location.- Parameters:
progDir
- path to the program's import directory
-
-
Method Details
-
isSameDirSearchLocation
Returns true if the specified location string specifies a SameDirSearchLocation.- Parameters:
locString
- string to test- Returns:
- boolean true if locString specifies a BuildId location
-
create
Creates a newSameDirSearchLocation
instance using the current program's import location.- Parameters:
locString
- unusedcontext
-SearchLocationCreatorContext
- Returns:
- new
SameDirSearchLocation
instance
-
getName
Description copied from interface:SearchLocation
Returns the name of this instance, which should be a serialized copy of this instance.- Specified by:
getName
in interfaceSearchLocation
- Returns:
- String serialized data of this instance, typically in "something://serialized_data" form
-
getDescriptiveName
Description copied from interface:SearchLocation
Returns a human formatted string describing this location, used in UI prompts or lists.- Specified by:
getDescriptiveName
in interfaceSearchLocation
- Returns:
- formatted string
-
findDebugFile
public FSRL findDebugFile(ExternalDebugInfo debugInfo, TaskMonitor monitor) throws IOException, CancelledException Description copied from interface:SearchLocation
Searchs for a debug file that fulfills the criteria specified in theExternalDebugInfo
.- Specified by:
findDebugFile
in interfaceSearchLocation
- Parameters:
debugInfo
- search criteriamonitor
-TaskMonitor
- Returns:
FSRL
of the matching file, ornull
if not found- Throws:
IOException
- if errorCancelledException
- if cancelled
-