Package ghidra.app.util.bin.format.dwarf4.next.sectionprovider

# Class DWARFSectionProviderFactory

java.lang.Object
ghidra.app.util.bin.format.dwarf4.next.sectionprovider.DWARFSectionProviderFactory

public class DWARFSectionProviderFactory extends Object
Auto-detects which `DWARFSectionProvider` matches a Ghidra program.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DWARFSectionProviderFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.