Class AIXDumpReader
java.lang.Object
com.ibm.j9ddr.corereaders.AbstractCoreReader
com.ibm.j9ddr.corereaders.aix.AIXDumpReader
- All Implemented Interfaces:
ICore, ILibraryDependentCore
-
Field Summary
FieldsFields declared in class AbstractCoreReader
_fileReader, _memoryRanges, coreFileModifier and TypeFieldDescriptionprotected ImageInputStreamprotected Collection<? extends IMemorySource> protected FileFields declared in interface ICore
CORE_CREATE_TIME_PROPERTY, PROCESSOR_COUNT_PROPERTY, PROCESSOR_SUBTYPE_PROPERTY, PROCESSOR_TYPE_PROPERTY, SYSTEM_SUBTYPE_PROPERTY, SYSTEM_TYPE_PROPERTYFields declared in interface ILibraryDependentCore
SYSTEM_PROP_EXE_PATHModifier and TypeFieldDescriptionstatic final StringThe system property which contains the full path to the executable. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutablePathHint(String path) Give the core reader a hint to the location of the executable.longThis is the dump format expressed as a string e.g. elf or xcoff.protected abstract longgetInstructionPointerFrom(Map<String, Number> registers) protected abstract longgetLinkRegisterFrom(Map<String, Number> registers) protected com.ibm.j9ddr.corereaders.aix.AIXProcessAddressSpacestatic ICoregetReaderForFile(File file) static ICoreprotected abstract longgetStackPointerFrom(Map<String, Number> registers) protected abstract booleanis64Bit()static booleanisAIXDump(byte[] data, long filesize) protected static booleanprotected abstract intprotected abstract longprotected voidreadCore()protected abstract intreadRegisters(long threadOffset) protected abstract intprotected abstract longthreadSize(long threadOffset) protected abstract longbooleanvalidDump(byte[] data, long filesize) Methods declared in class AbstractCoreReader
checkOffset, close, format, format, readByte, readBytes, readFully, readFully, readInt, readInt, readLong, readLong, readShort, readString, seek, setReaderModifier and TypeMethodDescriptionprotected booleancheckOffset(long location) voidclose()Close the handle to the core file and release any resourcesstatic Stringformat(int i) static Stringformat(long l) bytereadByte()byte[]readBytes(int len) voidreadFully(byte[] b) voidreadFully(byte[] buffer, int offset, int length) intreadInt()protected static intreadInt(byte[] data, int start) longreadLong()protected static longreadLong(byte[] data, int start) shortprotected Stringvoidseek(long pos) voidsetReader(ImageInputStream reader) This sets the reader to use to retrieve the underlying bytes to process.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface ICore
isTruncatedModifier and TypeMethodDescriptiondefault booleanIs this core file truncated (i.e. incomplete)?
-
Field Details
-
S64BIT
protected static final int S64BIT- See Also:
-
-
Constructor Details
-
AIXDumpReader
public AIXDumpReader()
-
-
Method Details
-
readRegisters
- Throws:
IOException
-
readLoaderInfoFlags
- Throws:
IOException
-
userInfoOffset
protected abstract long userInfoOffset() -
threadSize
protected abstract long threadSize(long threadOffset) -
pointerSize
protected abstract int pointerSize() -
getStackPointerFrom
-
getInstructionPointerFrom
-
getLinkRegisterFrom
-
sizeofTopOfStack
protected abstract int sizeofTopOfStack() -
isAIXDump
- Throws:
IOException
-
validDump
public boolean validDump(byte[] data, long filesize) -
readCore
- Throws:
IOException
-
getCPUType
-
getCPUSubType
-
getCreationTime
public long getCreationTime() -
is64Bit
protected abstract boolean is64Bit() -
readAddress
- Throws:
IOException
-
executablePathHint
Description copied from interface:ILibraryDependentCoreGive the core reader a hint to the location of the executable. If it hasn't already found and loaded the libraries, may attempt to do so.- Specified by:
executablePathHintin interfaceILibraryDependentCore- Parameters:
path-
-
getDumpFormat
Description copied from interface:ICoreThis is the dump format expressed as a string e.g. elf or xcoff. It is recommended that this name is in lower case.- Specified by:
getDumpFormatin interfaceICore- Returns:
-
getProcess
protected com.ibm.j9ddr.corereaders.aix.AIXProcessAddressSpace getProcess() -
getAddressSpaces
- Specified by:
getAddressSpacesin interfaceICore- Returns:
- Address spaces held in this core dump
-
getPlatform
- Specified by:
getPlatformin interfaceICore- Returns:
- Platform that created the dump
-
getProperties
- Specified by:
getPropertiesin interfaceICore- Returns:
- Property set for this core
-
isAIXDump
public static boolean isAIXDump(byte[] data, long filesize) -
getReaderForFile
-
getReaderForFile
public static ICore getReaderForFile(ImageInputStream in) throws IOException, InvalidDumpFormatException
-