Class DWARFSectionProviderFactory

java.lang.Object
ghidra.app.util.bin.format.dwarf.sectionprovider.DWARFSectionProviderFactory

public class DWARFSectionProviderFactory extends Object
Auto-detects which DWARFSectionProvider matches a Ghidra program.
  • Constructor Details

    • DWARFSectionProviderFactory

      public DWARFSectionProviderFactory()
  • Method Details

    • createSectionProviderFor

      public static DWARFSectionProvider createSectionProviderFor(Program program, TaskMonitor monitor)
      Iterates through the statically registered factory funcs, trying each factory method until one returns a DWARFSectionProvider that can successfully retrieve the minimal sections we need to do a DWARF import.

      The resulting DWARFSectionProvider is Closeable and it is the caller's responsibility to ensure that the object is closed when done.

      Parameters:
      program -
      monitor - TaskMonitor
      Returns:
      DWARFSectionProvider that should be closed by the caller or NULL if no section provider types match the specified program.