Class BaseSectionProvider
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.next.sectionprovider.BaseSectionProvider
-
- All Implemented Interfaces:
DWARFSectionProvider
,java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
ExternalDebugFileSectionProvider
public class BaseSectionProvider extends java.lang.Object implements DWARFSectionProvider
Fetches DWARF sections from a normal program using simple Ghidra memory blocks.
-
-
Constructor Summary
Constructors Constructor Description BaseSectionProvider(Program program)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static BaseSectionProvider
createSectionProviderFor(Program program)
ByteProvider
getSectionAsByteProvider(java.lang.String sectionName)
static boolean
hasDWARFSections(Program program)
boolean
hasSection(java.lang.String... sectionNames)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ghidra.app.util.bin.format.dwarf4.next.sectionprovider.DWARFSectionProvider
updateProgramInfo
-
-
-
-
Field Detail
-
program
protected Program program
-
-
Constructor Detail
-
BaseSectionProvider
public BaseSectionProvider(Program program)
-
-
Method Detail
-
hasDWARFSections
public static boolean hasDWARFSections(Program program)
-
createSectionProviderFor
public static BaseSectionProvider createSectionProviderFor(Program program)
-
getSectionAsByteProvider
public ByteProvider getSectionAsByteProvider(java.lang.String sectionName) throws java.io.IOException
- Specified by:
getSectionAsByteProvider
in interfaceDWARFSectionProvider
- Throws:
java.io.IOException
-
hasSection
public boolean hasSection(java.lang.String... sectionNames)
- Specified by:
hasSection
in interfaceDWARFSectionProvider
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceDWARFSectionProvider
-
-