Class MachOBinaryObject64
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.utils.BinaryFile
org.eclipse.cdt.utils.BinaryObjectAdapter
org.eclipse.cdt.utils.macho.parser.MachOBinaryObject64
- All Implemented Interfaces:
IBinaryParser.IBinaryFile,IBinaryParser.IBinaryObject,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
MachOBinaryExecutable64,MachOBinaryShared64
MachOBinaryObject64
- Since:
- 5.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
BinaryObjectAdapter.BinaryObjectInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IAddressFactoryprotected MachO64.Attributeprotected AR.ARHeaderprotected booleanprotected String[]protected MachOHelper64.Sizesprotected Stringprotected IBinaryParser.ISymbol[]protected longFields inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
NO_SYMBOLSFields inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
ARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED -
Constructor Summary
ConstructorsConstructorDescriptionMachOBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type) MachOBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header) -
Method Summary
Modifier and TypeMethodDescriptionprotected void<T> TgetAdapter(Class<T> adapter) protected BinaryObjectAdapter.BinaryObjectInfolonggetBSS()protected CPPFiltgetCPU()CPU namelonggetData()protected MachOHelper64getName()The name of the objectString[]Symbo at this address.Symbols of the objectlonggetText()protected booleanbooleanhasDebug()True if the binary contains debug informationprotected MachO64.Attributeprotected String[]protected MachOHelper64.Sizesprotected Stringprotected IBinaryParser.ISymbol[]booleanThe endianprotected voidprotected IBinaryParser.ISymbol[]loadSymbols(MachOHelper64 helper) Methods inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
toStringMethods inherited from class org.eclipse.cdt.utils.BinaryFile
getBinaryParser, getPath, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
getBinaryParser, getPath, getType
-
Field Details
-
header
-
addressFactory
-
attributes
-
sizes
-
symbols
-
soname
-
needed
-
timeStamp
protected long timeStamp -
is64
protected boolean is64
-
-
Constructor Details
-
MachOBinaryObject64
public MachOBinaryObject64(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header) - Parameters:
parser-path-header-
-
MachOBinaryObject64
- Parameters:
parser-path-type-
-
-
Method Details
-
getBinaryObjectInfo
- Specified by:
getBinaryObjectInfoin classBinaryObjectAdapter
-
getContents
- Specified by:
getContentsin interfaceIBinaryParser.IBinaryFile- Overrides:
getContentsin classBinaryFile- Returns:
- the binary contents.
- Throws:
IOException- See Also:
-
getMachOHelper
- Throws:
IOException
-
getName
Description copied from interface:IBinaryParser.IBinaryObjectThe name of the object- Specified by:
getNamein interfaceIBinaryParser.IBinaryObject- Overrides:
getNamein classBinaryObjectAdapter- Returns:
- String
- See Also:
-
getAddressFactory
- Specified by:
getAddressFactoryin interfaceIBinaryParser.IBinaryObject- Specified by:
getAddressFactoryin classBinaryObjectAdapter
-
clearCachedValues
protected void clearCachedValues() -
internalGetAttributes
-
internalGetSizes
-
internalGetSymbols
-
internalGetSoName
-
internalGetNeeded
-
loadBinaryInfo
protected void loadBinaryInfo() -
loadSymbols
- Throws:
IOException
-
getCPPFilt
-
getCPU
Description copied from interface:IBinaryParser.IBinaryObjectCPU name- Specified by:
getCPUin interfaceIBinaryParser.IBinaryObject- Overrides:
getCPUin classBinaryObjectAdapter- Returns:
- String - cpu name
- See Also:
-
hasDebug
public boolean hasDebug()Description copied from interface:IBinaryParser.IBinaryObjectTrue if the binary contains debug information- Specified by:
hasDebugin interfaceIBinaryParser.IBinaryObject- Overrides:
hasDebugin classBinaryObjectAdapter- Returns:
- true if debug information
- See Also:
-
isLittleEndian
public boolean isLittleEndian()Description copied from interface:IBinaryParser.IBinaryObjectThe endian- Specified by:
isLittleEndianin interfaceIBinaryParser.IBinaryObject- Overrides:
isLittleEndianin classBinaryObjectAdapter- Returns:
- boolean - true for little endian
- See Also:
-
getBSS
public long getBSS()- Specified by:
getBSSin interfaceIBinaryParser.IBinaryObject- Overrides:
getBSSin classBinaryObjectAdapter- See Also:
-
getData
public long getData()- Specified by:
getDatain interfaceIBinaryParser.IBinaryObject- Overrides:
getDatain classBinaryObjectAdapter- See Also:
-
getText
public long getText()- Specified by:
getTextin interfaceIBinaryParser.IBinaryObject- Overrides:
getTextin classBinaryObjectAdapter- See Also:
-
getSymbols
Description copied from interface:IBinaryParser.IBinaryObjectSymbols of the object- Specified by:
getSymbolsin interfaceIBinaryParser.IBinaryObject- Specified by:
getSymbolsin classBinaryObjectAdapter- Returns:
- ISymbol[] arrays of symbols
- See Also:
-
getSymbol
Description copied from interface:IBinaryParser.IBinaryObjectSymbo at this address.- Specified by:
getSymbolin interfaceIBinaryParser.IBinaryObject- Overrides:
getSymbolin classBinaryObjectAdapter- Parameters:
addr-- Returns:
- ISymbol
-
getSoName
- Overrides:
getSoNamein classBinaryObjectAdapter- See Also:
-
hasChanged
protected boolean hasChanged()- Overrides:
hasChangedin classBinaryFile
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classorg.eclipse.core.runtime.PlatformObject
-