Class XCOFFBinaryObject
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.cdt.utils.BinaryFile
-
- org.eclipse.cdt.utils.BinaryObjectAdapter
-
- org.eclipse.cdt.utils.xcoff.parser.XCOFFBinaryObject
-
- All Implemented Interfaces:
IBinaryParser.IBinaryFile
,IBinaryParser.IBinaryObject
,org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
XCOFFBinaryExecutable
,XCOFFBinaryShared
public class XCOFFBinaryObject extends BinaryObjectAdapter
Binary file in AIX XCOFF32 format
-
-
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 XCOFFBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
XCOFFBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.MemberHeader header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSymbols(XCoff32.Symbol[] peSyms, byte[] table, List<XCoffSymbol> list)
<T> T
getAdapter(Class<T> adapter)
Addr2line
getAddr2line(boolean autodisposing)
IAddressFactory
getAddressFactory()
protected BinaryObjectAdapter.BinaryObjectInfo
getBinaryObjectInfo()
InputStream
getContents()
String
getName()
The name of the objectIBinaryParser.ISymbol[]
getSymbols()
Symbols of the objectprotected XCoff32
getXCoff32()
protected void
loadAll()
protected void
loadInfo()
protected void
loadInfo(XCoff32 xcoff)
protected void
loadSymbols(XCoff32 xcoff)
-
Methods inherited from class org.eclipse.cdt.utils.BinaryObjectAdapter
getBSS, getCPU, getData, getNeededSharedLibs, getSoName, getSymbol, getText, hasDebug, isLittleEndian, 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
-
XCOFFBinaryObject
public XCOFFBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, int type)
- Parameters:
parser
-path
-type
-
-
XCOFFBinaryObject
public XCOFFBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath path, AR.MemberHeader header)
- Parameters:
parser
-path
-header
-
-
-
Method Detail
-
getSymbols
public IBinaryParser.ISymbol[] getSymbols()
Description copied from interface:IBinaryParser.IBinaryObject
Symbols of the object- Specified by:
getSymbols
in interfaceIBinaryParser.IBinaryObject
- Specified by:
getSymbols
in classBinaryObjectAdapter
- Returns:
- ISymbol[] arrays of symbols
- See Also:
IBinaryParser.IBinaryObject.getSymbols()
-
getBinaryObjectInfo
protected BinaryObjectAdapter.BinaryObjectInfo getBinaryObjectInfo()
- Specified by:
getBinaryObjectInfo
in classBinaryObjectAdapter
-
getName
public String getName()
Description copied from interface:IBinaryParser.IBinaryObject
The name of the object- Specified by:
getName
in interfaceIBinaryParser.IBinaryObject
- Overrides:
getName
in classBinaryObjectAdapter
- Returns:
- String
- See Also:
IBinaryParser.IBinaryObject.getName()
-
getContents
public InputStream getContents() throws IOException
- Specified by:
getContents
in interfaceIBinaryParser.IBinaryFile
- Overrides:
getContents
in classBinaryFile
- Returns:
- the binary contents.
- Throws:
IOException
- See Also:
IBinaryParser.IBinaryFile.getContents()
-
getXCoff32
protected XCoff32 getXCoff32() throws IOException
- Throws:
IOException
-
loadAll
protected void loadAll() throws IOException
- Throws:
IOException
-
loadInfo
protected void loadInfo() throws IOException
- Throws:
IOException
-
loadInfo
protected void loadInfo(XCoff32 xcoff) throws IOException
- Throws:
IOException
-
loadSymbols
protected void loadSymbols(XCoff32 xcoff) throws IOException
- Throws:
IOException
-
addSymbols
protected void addSymbols(XCoff32.Symbol[] peSyms, byte[] table, List<XCoffSymbol> list)
-
getAddr2line
public Addr2line getAddr2line(boolean autodisposing)
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.core.runtime.PlatformObject
-
getAddressFactory
public IAddressFactory getAddressFactory()
- Specified by:
getAddressFactory
in interfaceIBinaryParser.IBinaryObject
- Specified by:
getAddressFactory
in classBinaryObjectAdapter
-
-