Package org.eclipse.cdt.utils.elf.parser
Class ElfBinaryObject
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.utils.BinaryFile
org.eclipse.cdt.utils.BinaryObjectAdapter
org.eclipse.cdt.utils.elf.parser.ElfBinaryObject
- All Implemented Interfaces:
IBinaryParser.IBinaryFile,IBinaryParser.IBinaryObject,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
ElfBinaryExecutable,ElfBinaryShared,GNUElfBinaryObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
BinaryObjectAdapter.BinaryObjectInfo -
Field Summary
Fields 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
ConstructorsConstructorDescriptionElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath p, int type) ElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath p, AR.ARHeader h) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSymbols(Elf.Symbol[] array, int type, List<Symbol> list) <T> TgetAdapter(Class<T> adapter) protected BinaryObjectAdapter.BinaryObjectInfogetCPU()CPU nameprotected ElfHelpergetName()The name of the objectSymbols of the objectbooleanThe endianprotected voidloadAll()protected voidloadInfo()protected voidprotected voidloadSymbols(ElfHelper helper) Methods inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
getBSS, getData, getNeededSharedLibs, getSoName, getSymbol, getText, hasDebug, toStringMethods inherited from class org.eclipse.cdt.utils.BinaryFile
getBinaryParser, getPath, getType, hasChangedMethods 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
-
Constructor Details
-
ElfBinaryObject
-
ElfBinaryObject
-
-
Method Details
-
getName
Description copied from interface:IBinaryParser.IBinaryObjectThe name of the object- Specified by:
getNamein interfaceIBinaryParser.IBinaryObject- Overrides:
getNamein classBinaryObjectAdapter- Returns:
- String
- See Also:
-
getContents
- Specified by:
getContentsin interfaceIBinaryParser.IBinaryFile- Overrides:
getContentsin classBinaryFile- Returns:
- the binary contents.
- Throws:
IOException- 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:
-
getBinaryObjectInfo
- Specified by:
getBinaryObjectInfoin classBinaryObjectAdapter
-
getElfHelper
- Throws:
IOException
-
loadAll
- Throws:
IOException
-
loadInfo
- Throws:
IOException
-
loadInfo
- Throws:
IOException
-
loadSymbols
- Throws:
IOException
-
addSymbols
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classorg.eclipse.core.runtime.PlatformObject
-
getAddressFactory
- Specified by:
getAddressFactoryin interfaceIBinaryParser.IBinaryObject- Specified by:
getAddressFactoryin classBinaryObjectAdapter
-
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:
-
getCPU
Description copied from interface:IBinaryParser.IBinaryObjectCPU name- Specified by:
getCPUin interfaceIBinaryParser.IBinaryObject- Overrides:
getCPUin classBinaryObjectAdapter- Returns:
- String - cpu name
- See Also:
-