Package org.eclipse.cdt.utils.elf.parser
Class GNUElfBinaryObject
- 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
-
- org.eclipse.cdt.utils.elf.parser.GNUElfBinaryObject
-
- All Implemented Interfaces:
IBinaryParser.IBinaryFile,IBinaryParser.IBinaryObject,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
GNUElfBinaryExecutable,GNUElfBinaryShared
public class GNUElfBinaryObject extends ElfBinaryObject
-
-
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_SYMBOLS
-
Fields inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
ARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED
-
-
Constructor Summary
Constructors Constructor Description GNUElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)GNUElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSymbols(Elf.Symbol[] array, int type, java.util.List<Symbol> list)<T> TgetAdapter(java.lang.Class<T> adapter)Addr2linegetAddr2line(boolean autodisposing)java.io.InputStreamgetContents()protected CPPFiltgetCPPFilt()protected ObjdumpgetObjdump()protected voidloadSymbols(ElfHelper helper)-
Methods inherited from class org.eclipse.cdt.utils.elf.parser.ElfBinaryObject
getAddressFactory, getBinaryObjectInfo, getCPU, getElfHelper, getName, getSymbols, isLittleEndian, loadAll, loadInfo, loadInfo
-
Methods inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
getBSS, getData, getNeededSharedLibs, getSoName, getSymbol, getText, hasDebug, toString
-
Methods inherited from class org.eclipse.cdt.utils.BinaryFile
getBinaryParser, getPath, getType, hasChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.cdt.core.IBinaryParser.IBinaryFile
getBinaryParser, getPath, getType
-
-
-
-
Constructor Detail
-
GNUElfBinaryObject
public GNUElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.ARHeader header)
- Parameters:
parser-path-header-
-
GNUElfBinaryObject
public GNUElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
- Parameters:
parser-path-type-
-
-
Method Detail
-
getAddr2line
public Addr2line getAddr2line(boolean autodisposing)
-
getCPPFilt
protected CPPFilt getCPPFilt()
-
getObjdump
protected Objdump getObjdump()
-
getContents
public java.io.InputStream getContents() throws java.io.IOException- Specified by:
getContentsin interfaceIBinaryParser.IBinaryFile- Overrides:
getContentsin classElfBinaryObject- Returns:
- the binary contents.
- Throws:
java.io.IOException- See Also:
IBinaryParser.IBinaryFile.getContents()
-
loadSymbols
protected void loadSymbols(ElfHelper helper) throws java.io.IOException
- Overrides:
loadSymbolsin classElfBinaryObject- Throws:
java.io.IOException
-
addSymbols
protected void addSymbols(Elf.Symbol[] array, int type, java.util.List<Symbol> list)
- Overrides:
addSymbolsin classElfBinaryObject
-
getAdapter
public <T> T getAdapter(java.lang.Class<T> adapter)
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classElfBinaryObject
-
-