Class DSymSectionProvider
java.lang.Object
ghidra.app.util.bin.format.dwarf.sectionprovider.DSymSectionProvider
- All Implemented Interfaces:
DWARFSectionProvider,Closeable,AutoCloseable
Fetches DWARF section data for a MachO program with co-located .dSYM folder. (ie. Mac OSX
binaries)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static DSymSectionProvidercreateSectionProviderFor(Program program, TaskMonitor monitor) static FilegetDSYMForProgram(Program program) getSectionAsByteProvider(String sectionName, TaskMonitor monitor) Returns a ByteProvider for the specified section.booleanhasSection(String... sectionNames) Returns true if the specified section names are present.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.app.util.bin.format.dwarf.sectionprovider.DWARFSectionProvider
updateProgramInfo
-
Constructor Details
-
DSymSectionProvider
- Throws:
IOExceptionMachException
-
-
Method Details
-
getDSYMForProgram
-
createSectionProviderFor
-
getSectionAsByteProvider
public ByteProvider getSectionAsByteProvider(String sectionName, TaskMonitor monitor) throws IOException Description copied from interface:DWARFSectionProviderReturns a ByteProvider for the specified section.- Specified by:
getSectionAsByteProviderin interfaceDWARFSectionProvider- Parameters:
sectionName- name of the sectionmonitor-TaskMonitorto use when performing long operations- Returns:
- ByteProvider, which will be closed by the section provider when itself is closed
- Throws:
IOException- if error
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDWARFSectionProvider
-
hasSection
Description copied from interface:DWARFSectionProviderReturns true if the specified section names are present.- Specified by:
hasSectionin interfaceDWARFSectionProvider- Parameters:
sectionNames- list of section names to test- Returns:
- true if all are present, false if not present
-