Module openj9.dtfj

Class AIXDumpReader

java.lang.Object
com.ibm.j9ddr.corereaders.AbstractCoreReader
com.ibm.j9ddr.corereaders.aix.AIXDumpReader
All Implemented Interfaces:
ICore, ILibraryDependentCore

public abstract class AIXDumpReader extends AbstractCoreReader implements ILibraryDependentCore
  • Field Details

  • Constructor Details

    • AIXDumpReader

      public AIXDumpReader()
  • Method Details

    • readRegisters

      protected abstract Map<String,Number> readRegisters(long threadOffset) throws IOException
      Throws:
      IOException
    • readLoaderInfoFlags

      protected abstract int readLoaderInfoFlags() throws IOException
      Throws:
      IOException
    • userInfoOffset

      protected abstract long userInfoOffset()
    • threadSize

      protected abstract long threadSize(long threadOffset)
    • pointerSize

      protected abstract int pointerSize()
    • getStackPointerFrom

      protected abstract long getStackPointerFrom(Map<String,Number> registers)
    • getInstructionPointerFrom

      protected abstract long getInstructionPointerFrom(Map<String,Number> registers)
    • getLinkRegisterFrom

      protected abstract long getLinkRegisterFrom(Map<String,Number> registers)
    • sizeofTopOfStack

      protected abstract int sizeofTopOfStack()
    • isAIXDump

      protected static boolean isAIXDump(ClosingFileReader f) throws IOException
      Throws:
      IOException
    • validDump

      public boolean validDump(byte[] data, long filesize)
    • readCore

      protected void readCore() throws IOException
      Throws:
      IOException
    • getCPUType

      public String getCPUType()
    • getCPUSubType

      public String getCPUSubType()
    • getCreationTime

      public long getCreationTime()
    • is64Bit

      protected abstract boolean is64Bit()
    • readAddress

      protected abstract long readAddress() throws IOException
      Throws:
      IOException
    • executablePathHint

      public void executablePathHint(String path)
      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 interface ILibraryDependentCore
      Parameters:
      path -
    • getDumpFormat

      public String 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 interface ICore
      Returns:
    • getProcess

      protected com.ibm.j9ddr.corereaders.aix.AIXProcessAddressSpace getProcess()
    • getAddressSpaces

      public List<IAddressSpace> getAddressSpaces()
      Specified by:
      getAddressSpaces in interface ICore
      Returns:
      Address spaces held in this core dump
    • getPlatform

      public Platform getPlatform()
      Specified by:
      getPlatform in interface ICore
      Returns:
      Platform that created the dump
    • getProperties

      public Properties getProperties()
      Specified by:
      getProperties in interface ICore
      Returns:
      Property set for this core
    • isAIXDump

      public static boolean isAIXDump(byte[] data, long filesize)
    • getReaderForFile

      public static ICore getReaderForFile(File file) throws IOException, InvalidDumpFormatException
      Throws:
      IOException
      InvalidDumpFormatException
    • getReaderForFile

      public static ICore getReaderForFile(ImageInputStream in) throws IOException, InvalidDumpFormatException
      Throws:
      IOException
      InvalidDumpFormatException
    • close

      public void close() throws IOException
      Description copied from interface: ICore
      Close the handle to the core file and release any resources
      Specified by:
      close in interface ICore
      Throws:
      IOException