Class DyldCacheLocalSymbolsInfo
java.lang.Object
ghidra.app.util.bin.format.macho.dyld.DyldCacheLocalSymbolsInfo
- All Implemented Interfaces:
StructConverter
Represents a dyld_cache_local_symbols_info structure.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDyldCacheLocalSymbolsInfo
(BinaryReader reader, DyldArchitecture architecture, boolean use64bitOffsets) Create a newDyldCacheLocalSymbolsInfo
. -
Method Summary
Modifier and TypeMethodDescriptionGets theList
ofDyldCacheLocalSymbolsEntry
s.getNList()
getNList
(long dylibOffset) void
markup
(Program program, Address localSymbolsInfoAddr, TaskMonitor monitor, MessageLog log) Marks up thisDyldCacheLocalSymbolsInfo
with data structures and comments.void
parse
(MessageLog log, TaskMonitor monitor) Parses the structures referenced by thisDyldCacheLocalSymbolsInfo
.Returns a structure datatype representing the contents of the implementor of this interface.
-
Constructor Details
-
DyldCacheLocalSymbolsInfo
public DyldCacheLocalSymbolsInfo(BinaryReader reader, DyldArchitecture architecture, boolean use64bitOffsets) throws IOException Create a newDyldCacheLocalSymbolsInfo
.- Parameters:
reader
- ABinaryReader
positioned at the start of a DYLD local symbols infoarchitecture
- TheDyldArchitecture
use64bitOffsets
- True if the DYLD local symbol entries use 64-bit dylib offsets; false if they use 32-bit- Throws:
IOException
- if there was an IO-related problem creating the DYLD local symbols info
-
-
Method Details
-
parse
Parses the structures referenced by thisDyldCacheLocalSymbolsInfo
.- Parameters:
log
- The logmonitor
- A cancellable task monitor- Throws:
CancelledException
- if the user cancelled the operation
-
markup
public void markup(Program program, Address localSymbolsInfoAddr, TaskMonitor monitor, MessageLog log) throws CancelledException Marks up thisDyldCacheLocalSymbolsInfo
with data structures and comments.- Parameters:
program
- TheProgram
to mark uplocalSymbolsInfoAddr
- TheAddress
of theDyldCacheLocalSymbolsInfo
monitor
- A cancellable task monitorlog
- The log- Throws:
CancelledException
- if the user cancelled the operation
-
getLocalSymbolsEntries
Gets theList
ofDyldCacheLocalSymbolsEntry
s.- Returns:
- The
List
ofDyldCacheLocalSymbolsEntry
-
getNList
-
getNList
-
toDataType
Description copied from interface:StructConverter
Returns a structure datatype representing the contents of the implementor of this interface.For example, given:
class A { int foo; double bar; }
The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.
- Specified by:
toDataType
in interfaceStructConverter
- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException
- when a datatype of the same name already existsIOException
- if an IO-related error occurs- See Also:
-