Class ExternalDebugFilesService

java.lang.Object
ghidra.app.util.bin.format.dwarf.external.ExternalDebugFilesService

public class ExternalDebugFilesService extends Object
A collection of search locations that can be queried to find a DWARF external debug file, which is a second ELF binary that contains the debug information that was stripped from the original ELF binary.
  • Constructor Details

    • ExternalDebugFilesService

      public ExternalDebugFilesService(List<SearchLocation> searchLocations)
      Creates a new instance using the list of search locations.
      Parameters:
      searchLocations - list of search locations
  • Method Details

    • getSearchLocations

      public List<SearchLocation> getSearchLocations()
      Returns the configured search locations.
      Returns:
      list of search locations
    • findDebugFile

      public FSRL findDebugFile(ExternalDebugInfo debugInfo, TaskMonitor monitor) throws IOException
      Searches for the specified external debug file.

      Returns the FSRL of a matching file, or null if not found.

      Parameters:
      debugInfo - information about the external debug file
      monitor - TaskMonitor
      Returns:
      FSRL of found file, or null if not found
      Throws:
      IOException - if error