Class DSymSectionProvider
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.next.sectionprovider.DSymSectionProvider
-
- All Implemented Interfaces:
DWARFSectionProvider
,java.io.Closeable
,java.lang.AutoCloseable
public class DSymSectionProvider extends java.lang.Object implements DWARFSectionProvider
Fetches DWARF section data for a MachO program with co-located .dSYM folder. (ie. Mac OSX binaries)
-
-
Constructor Summary
Constructors Constructor Description DSymSectionProvider(java.io.File dsymFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static DSymSectionProvider
createSectionProviderFor(Program program)
static java.io.File
getDSYMForProgram(Program program)
ByteProvider
getSectionAsByteProvider(java.lang.String sectionName)
boolean
hasSection(java.lang.String... sectionNames)
-
-
-
Constructor Detail
-
DSymSectionProvider
public DSymSectionProvider(java.io.File dsymFile) throws java.io.IOException, MachException
- Throws:
java.io.IOException
MachException
-
-
Method Detail
-
getDSYMForProgram
public static java.io.File getDSYMForProgram(Program program)
-
createSectionProviderFor
public static DSymSectionProvider createSectionProviderFor(Program program)
-
getSectionAsByteProvider
public ByteProvider getSectionAsByteProvider(java.lang.String sectionName) throws java.io.IOException
- Specified by:
getSectionAsByteProvider
in interfaceDWARFSectionProvider
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceDWARFSectionProvider
-
hasSection
public boolean hasSection(java.lang.String... sectionNames)
- Specified by:
hasSection
in interfaceDWARFSectionProvider
-
-