Class ExternalDebugFileSectionProvider
java.lang.Object
ghidra.app.util.bin.format.dwarf.sectionprovider.BaseSectionProvider
ghidra.app.util.bin.format.dwarf.sectionprovider.ExternalDebugFileSectionProvider
- All Implemented Interfaces:
DWARFSectionProvider
,Closeable
,AutoCloseable
A
DWARFSectionProvider
that reads .debug_info (and friends) sections from an external
ELF file that is referenced in the original ELF file's build-id or debuglink sections.
Creates a pinning reference from the temporary external ELF debug file to this SectionProvider
instance using the program's DomainObject.addConsumer(Object)
, and then releases the
consumer when this instance is closed, allowing the temporary Program to be destroyed.
-
Field Summary
Fields inherited from class ghidra.app.util.bin.format.dwarf.sectionprovider.BaseSectionProvider
program, sectionPrefixes
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static DWARFSectionProvider
createExternalSectionProviderFor
(Program program, TaskMonitor monitor) static FSRL
getExternalDebugFileLocation
(Program program) Returns the previously saved value of the external debug file location from the program's metadata.void
updateProgramInfo
(Program program) Decorate the specified program with any information that is unique to this section provider.Methods inherited from class ghidra.app.util.bin.format.dwarf.sectionprovider.BaseSectionProvider
createSectionProviderFor, getSection, getSectionAsByteProvider, getSectionPrefixSearchList, hasSection
-
Field Details
-
PROGRAM_INFO_DWARF_EXTERNAL_DEBUG_FILE
- See Also:
-
-
Method Details
-
createExternalSectionProviderFor
public static DWARFSectionProvider createExternalSectionProviderFor(Program program, TaskMonitor monitor) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceDWARFSectionProvider
- Overrides:
close
in classBaseSectionProvider
-
updateProgramInfo
Description copied from interface:DWARFSectionProvider
Decorate the specified program with any information that is unique to this section provider.- Parameters:
program
-Program
with an active transaction
-
getExternalDebugFileLocation
Returns the previously saved value of the external debug file location from the program's metadata.- Parameters:
program
- DWARF that previously was analyzed- Returns:
- FSRL of external debug file, or null if missing or corrupted value
-