Class DWARFSectionProviderFactory


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

      • DWARFSectionProviderFactory

        public DWARFSectionProviderFactory()
    • Method Detail

      • createSectionProviderFor

        public static DWARFSectionProvider createSectionProviderFor​(Program program)
        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 -
        Returns:
        DWARFSectionProvider that should be closed by the caller or NULL if no section provider types match the specified program.