- java.lang.Object
- 
- com.ibm.j9ddr.corereaders.AbstractCoreReader
- 
- com.ibm.j9ddr.corereaders.macho.MachoDumpReader
 
 
- 
- All Implemented Interfaces:
- ICore,- ILibraryDependentCore
 
 public class MachoDumpReader extends AbstractCoreReader implements ILibraryDependentCore This dump reader supports Mach-O core files generated on 64-bit macOS systems.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classMachoDumpReader.MachFile64classMachoDumpReader.MachHeader64static classMachoDumpReader.OSXAArch64Threadstatic classMachoDumpReader.OSXAMD64Threadstatic classMachoDumpReader.OSXThread
 - 
Field SummaryFields Modifier and Type Field Description static intMH_BUNDLEstatic intMH_COREstatic intMH_DSYMstatic intMH_DYLIBstatic intMH_DYLIB_STUBstatic intMH_DYLINKERstatic intMH_EXECUTEstatic intMH_FVMLIBstatic intMH_KEXT_BUNDLEstatic intMH_OBJECTstatic intMH_PRELOAD- 
Fields declared in class com.ibm.j9ddr.corereaders.AbstractCoreReader_fileReader, _memoryRanges, coreFile
 - 
Fields declared in interface com.ibm.j9ddr.corereaders.ICoreCORE_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.ILibraryDependentCoreSYSTEM_PROP_EXE_PATH
 
- 
 - 
Constructor SummaryConstructors Constructor Description MachoDumpReader(ImageInputStream in)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommandLine()IModulegetExecutable()List<? extends IModule>getModules()longgetProcessId()static ICoregetReaderForFile(File f)static ICoregetReaderForFile(ImageInputStream in)intgetSignalNumber()List<? extends IOSThread>getThreads()static booleanisMACHO(byte[] data)MachoDumpReader.MachHeader64readHeader(long offset)MachoDumpReader.MachFile64readMachFile(long fileOffset)- 
Methods declared in class com.ibm.j9ddr.corereaders.AbstractCoreReadercheckOffset, format, format, readByte, readBytes, readFully, readFully, readInt, readInt, readLong, readLong, readShort, readString, seek, setReader
 - 
Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods declared in interface com.ibm.j9ddr.corereaders.ICoreclose, getAddressSpaces, getDumpFormat, getPlatform, getProperties, isTruncated
 - 
Methods declared in interface com.ibm.j9ddr.corereaders.ILibraryDependentCoreexecutablePathHint
 
- 
 
- 
- 
- 
Field Detail- 
MH_OBJECTpublic static final int MH_OBJECT - See Also:
- Constant Field Values
 
 - 
MH_EXECUTEpublic static final int MH_EXECUTE - See Also:
- Constant Field Values
 
 - 
MH_FVMLIBpublic static final int MH_FVMLIB - See Also:
- Constant Field Values
 
 - 
MH_COREpublic static final int MH_CORE - See Also:
- Constant Field Values
 
 - 
MH_PRELOADpublic static final int MH_PRELOAD - See Also:
- Constant Field Values
 
 - 
MH_DYLIBpublic static final int MH_DYLIB - See Also:
- Constant Field Values
 
 - 
MH_DYLINKERpublic static final int MH_DYLINKER - See Also:
- Constant Field Values
 
 - 
MH_BUNDLEpublic static final int MH_BUNDLE - See Also:
- Constant Field Values
 
 - 
MH_DYLIB_STUBpublic static final int MH_DYLIB_STUB - See Also:
- Constant Field Values
 
 - 
MH_DSYMpublic static final int MH_DSYM - See Also:
- Constant Field Values
 
 - 
MH_KEXT_BUNDLEpublic static final int MH_KEXT_BUNDLE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
MachoDumpReaderpublic MachoDumpReader(ImageInputStream in) throws IOException, InvalidDumpFormatException 
 
- 
 - 
Method Detail- 
isMACHOpublic static boolean isMACHO(byte[] data) 
 - 
getReaderForFilepublic static ICore getReaderForFile(File f) throws IOException, InvalidDumpFormatException 
 - 
getReaderForFilepublic static ICore getReaderForFile(ImageInputStream in) throws IOException, InvalidDumpFormatException 
 - 
getCommandLinepublic String getCommandLine() throws DataUnavailableException - Throws:
- DataUnavailableException
 
 - 
getExecutablepublic IModule getExecutable() 
 - 
getProcessIdpublic long getProcessId() 
 - 
getThreadspublic List<? extends IOSThread> getThreads() throws CorruptDataException - Throws:
- CorruptDataException
 
 - 
getSignalNumberpublic int getSignalNumber() throws DataUnavailableException- Throws:
- DataUnavailableException
 
 - 
readMachFilepublic MachoDumpReader.MachFile64 readMachFile(long fileOffset) throws IOException, InvalidDumpFormatException 
 - 
readHeaderpublic MachoDumpReader.MachHeader64 readHeader(long offset) throws IOException, InvalidDumpFormatException 
 
- 
 
-