Class AIXDumpReader
java.lang.Object
com.ibm.j9ddr.corereaders.AbstractCoreReader
com.ibm.j9ddr.corereaders.aix.AIXDumpReader
- All Implemented Interfaces:
ICore
,ILibraryDependentCore
-
Field Summary
Fields declared in class com.ibm.j9ddr.corereaders.AbstractCoreReader
_fileReader, _memoryRanges, coreFile
Fields declared in interface com.ibm.j9ddr.corereaders.ICore
CORE_CREATE_TIME_PROPERTY, PROCESSOR_COUNT_PROPERTY, PROCESSOR_SUBTYPE_PROPERTY, PROCESSOR_TYPE_PROPERTY, SYSTEM_SUBTYPE_PROPERTY, SYSTEM_TYPE_PROPERTY
Fields declared in interface com.ibm.j9ddr.corereaders.ILibraryDependentCore
SYSTEM_PROP_EXE_PATH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the handle to the core file and release any resourcesvoid
executablePathHint
(String path) Give the core reader a hint to the location of the executable.long
This is the dump format expressed as a string e.g. elf or xcoff.protected abstract long
getInstructionPointerFrom
(Map<String, Number> registers) protected abstract long
getLinkRegisterFrom
(Map<String, Number> registers) protected com.ibm.j9ddr.corereaders.aix.AIXProcessAddressSpace
static ICore
getReaderForFile
(File file) static ICore
protected abstract long
getStackPointerFrom
(Map<String, Number> registers) protected abstract boolean
is64Bit()
static boolean
isAIXDump
(byte[] data, long filesize) protected static boolean
protected abstract int
protected abstract long
protected void
readCore()
protected abstract int
readRegisters
(long threadOffset) protected abstract int
protected abstract long
threadSize
(long threadOffset) protected abstract long
boolean
validDump
(byte[] data, long filesize) Methods declared in class com.ibm.j9ddr.corereaders.AbstractCoreReader
checkOffset, close, format, format, readByte, readBytes, readFully, readFully, readInt, readInt, readLong, readLong, readShort, readString, seek, setReader
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface com.ibm.j9ddr.corereaders.ICore
isTruncated
-
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:ILibraryDependentCore
Give 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:
executablePathHint
in interfaceILibraryDependentCore
- Parameters:
path
-
-
getDumpFormat
Description copied from interface:ICore
This 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:
getDumpFormat
in interfaceICore
- Returns:
-
getProcess
protected com.ibm.j9ddr.corereaders.aix.AIXProcessAddressSpace getProcess() -
getAddressSpaces
- Specified by:
getAddressSpaces
in interfaceICore
- Returns:
- Address spaces held in this core dump
-
getPlatform
- Specified by:
getPlatform
in interfaceICore
- Returns:
- Platform that created the dump
-
getProperties
- Specified by:
getProperties
in 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 -
close
Description copied from interface:ICore
Close the handle to the core file and release any resources- Specified by:
close
in interfaceICore
- Throws:
IOException
-