- 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 Summary
Nested Classes Modifier and Type Class Description classMachoDumpReader.MachFile64classMachoDumpReader.MachHeader64static classMachoDumpReader.OSXAArch64Threadstatic classMachoDumpReader.OSXAMD64Threadstatic classMachoDumpReader.OSXThread
-
Field Summary
Fields 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.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
Constructors Constructor Description MachoDumpReader(ImageInputStream in)
-
Method Summary
All 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.AbstractCoreReader
checkOffset, 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
close, getAddressSpaces, getDumpFormat, getPlatform, getProperties, isTruncated
-
Methods declared in interface com.ibm.j9ddr.corereaders.ILibraryDependentCore
executablePathHint
-
-
-
-
Field Detail
-
MH_OBJECT
public static final int MH_OBJECT
- See Also:
- Constant Field Values
-
MH_EXECUTE
public static final int MH_EXECUTE
- See Also:
- Constant Field Values
-
MH_FVMLIB
public static final int MH_FVMLIB
- See Also:
- Constant Field Values
-
MH_CORE
public static final int MH_CORE
- See Also:
- Constant Field Values
-
MH_PRELOAD
public static final int MH_PRELOAD
- See Also:
- Constant Field Values
-
MH_DYLIB
public static final int MH_DYLIB
- See Also:
- Constant Field Values
-
MH_DYLINKER
public static final int MH_DYLINKER
- See Also:
- Constant Field Values
-
MH_BUNDLE
public static final int MH_BUNDLE
- See Also:
- Constant Field Values
-
MH_DYLIB_STUB
public static final int MH_DYLIB_STUB
- See Also:
- Constant Field Values
-
MH_DSYM
public static final int MH_DSYM
- See Also:
- Constant Field Values
-
MH_KEXT_BUNDLE
public static final int MH_KEXT_BUNDLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MachoDumpReader
public MachoDumpReader(ImageInputStream in) throws IOException, InvalidDumpFormatException
-
-
Method Detail
-
isMACHO
public static boolean isMACHO(byte[] data)
-
getReaderForFile
public static ICore getReaderForFile(File f) throws IOException, InvalidDumpFormatException
-
getReaderForFile
public static ICore getReaderForFile(ImageInputStream in) throws IOException, InvalidDumpFormatException
-
getCommandLine
public String getCommandLine() throws DataUnavailableException
- Throws:
DataUnavailableException
-
getExecutable
public IModule getExecutable()
-
getProcessId
public long getProcessId()
-
getThreads
public List<? extends IOSThread> getThreads() throws CorruptDataException
- Throws:
CorruptDataException
-
getSignalNumber
public int getSignalNumber() throws DataUnavailableException- Throws:
DataUnavailableException
-
readMachFile
public MachoDumpReader.MachFile64 readMachFile(long fileOffset) throws IOException, InvalidDumpFormatException
-
readHeader
public MachoDumpReader.MachHeader64 readHeader(long offset) throws IOException, InvalidDumpFormatException
-
-