Class DWARFSectionProviderFactory
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.next.sectionprovider.DWARFSectionProviderFactory
-
public class DWARFSectionProviderFactory extends java.lang.Object
Auto-detects whichDWARFSectionProvider
matches a Ghidra program.
-
-
Constructor Summary
Constructors Constructor Description DWARFSectionProviderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DWARFSectionProvider
createSectionProviderFor(Program program)
Iterates through the statically registeredfactory funcs
, trying each factory method until one returns aDWARFSectionProvider
that can successfully retrieve theminimal
sections we need to do a DWARF import.static DWARFSectionProvider
createSectionProviderFor(Program program, TaskMonitor monitor)
Iterates through the statically registeredfactory funcs
, trying each factory method until one returns aDWARFSectionProvider
that can successfully retrieve theminimal
sections we need to do a DWARF import.
-
-
-
Method Detail
-
createSectionProviderFor
public static DWARFSectionProvider createSectionProviderFor(Program program)
Iterates through the statically registeredfactory funcs
, trying each factory method until one returns aDWARFSectionProvider
that can successfully retrieve theminimal
sections we need to do a DWARF import.The resulting
DWARFSectionProvider
isCloseable
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.
-
createSectionProviderFor
public static DWARFSectionProvider createSectionProviderFor(Program program, TaskMonitor monitor)
Iterates through the statically registeredfactory funcs
, trying each factory method until one returns aDWARFSectionProvider
that can successfully retrieve theminimal
sections we need to do a DWARF import.The resulting
DWARFSectionProvider
isCloseable
and it is the caller's responsibility to ensure that the object is closed when done.- Parameters:
program
- GhidraProgram
monitor
-TaskMonitor
- Returns:
DWARFSectionProvider
that should be closed by the caller or NULL if no section provider types match the specified program.
-
-