Class SameDirDebugInfoProvider
java.lang.Object
ghidra.app.util.bin.format.dwarf.external.SameDirDebugInfoProvider
- All Implemented Interfaces:
DebugFileProvider,DebugInfoProvider
A
DebugFileProvider that only looks in the program's original import directory for
matching debug files.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSameDirDebugInfoProvider(File progDir) Creates a newSameDirDebugInfoProviderat the specified directory. -
Method Summary
Modifier and TypeMethodDescriptionstatic SameDirDebugInfoProvidercreate(String name, DebugInfoProviderCreatorContext context) Creates a newSameDirDebugInfoProviderinstance using the current program's import location.Returns a human formatted string describing this provider, used in UI prompts or lists.getFile(ExternalDebugInfo debugInfo, TaskMonitor monitor) Searches for a debug file that fulfills the criteria specified in theExternalDebugInfo.getName()Returns the name of this instance, which should be a serialized copy of this instance, typically like "something://serialized_data".getStatus(TaskMonitor monitor) Returns DebugInfoProviderStatus representing this provider's current status.static booleanReturns true if the specified name string specifies a SameDirDebugInfoProvider.
-
Field Details
-
DESC
- See Also:
-
-
Constructor Details
-
SameDirDebugInfoProvider
Creates a newSameDirDebugInfoProviderat the specified directory.- Parameters:
progDir- path to the program's import directory
-
-
Method Details
-
matches
Returns true if the specified name string specifies a SameDirDebugInfoProvider.- Parameters:
name- string to test- Returns:
- boolean true if locString specifies a SameDirDebugInfoProvider
-
create
Creates a newSameDirDebugInfoProviderinstance using the current program's import location.- Parameters:
name- unusedcontext-DebugInfoProviderCreatorContext- Returns:
- new
SameDirDebugInfoProviderinstance
-
getName
Description copied from interface:DebugInfoProviderReturns the name of this instance, which should be a serialized copy of this instance, typically like "something://serialized_data".- Specified by:
getNamein interfaceDebugInfoProvider- Returns:
- the name of this instance, which should be a serialized copy of this instance, typically like "something://serialized_data"
-
getDescriptiveName
Description copied from interface:DebugInfoProviderReturns a human formatted string describing this provider, used in UI prompts or lists.- Specified by:
getDescriptiveNamein interfaceDebugInfoProvider- Returns:
- a human formatted string describing this provider, used in UI prompts or lists
-
getStatus
Description copied from interface:DebugInfoProviderReturns DebugInfoProviderStatus representing this provider's current status.- Specified by:
getStatusin interfaceDebugInfoProvider- Parameters:
monitor-TaskMonitor- Returns:
- DebugInfoProviderStatus representing this provider's current status
-
getFile
public File getFile(ExternalDebugInfo debugInfo, TaskMonitor monitor) throws IOException, CancelledException Description copied from interface:DebugFileProviderSearches for a debug file that fulfills the criteria specified in theExternalDebugInfo.- Specified by:
getFilein interfaceDebugFileProvider- Parameters:
debugInfo- search criteriamonitor-TaskMonitor- Returns:
- File of the matching file, or
nullif not found - Throws:
IOException- if errorCancelledException- if cancelled
-