java.lang.Object
com.ibm.j9ddr.corereaders.AbstractCoreReader
com.ibm.j9ddr.corereaders.macho.MachoDumpReader
- All Implemented Interfaces:
ICore,ILibraryDependentCore
This dump reader supports Mach-O core files generated on 64-bit macOS systems.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic final classstatic final classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields declared in class com.ibm.j9ddr.corereaders.AbstractCoreReader
_fileReader, _memoryRanges, coreFileFields 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_PROPERTYFields declared in interface com.ibm.j9ddr.corereaders.ILibraryDependentCore
SYSTEM_PROP_EXE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutablePathHint(String path) Give the core reader a hint to the location of the executable.Collection<? extends IAddressSpace> This is the dump format expressed as a string e.g. elf or xcoff.longstatic ICorestatic ICoreintstatic booleanisMACHO(byte[] data) readHeader(long offset) readMachFile(long fileOffset) Methods declared in class com.ibm.j9ddr.corereaders.AbstractCoreReader
checkOffset, close, format, format, readByte, readBytes, readFully, readFully, readInt, readInt, readLong, readLong, readShort, readString, seek, setReaderMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface com.ibm.j9ddr.corereaders.ICore
close, isTruncated
-
Field Details
-
MH_OBJECT
public static final int MH_OBJECT- See Also:
-
MH_EXECUTE
public static final int MH_EXECUTE- See Also:
-
MH_FVMLIB
public static final int MH_FVMLIB- See Also:
-
MH_CORE
public static final int MH_CORE- See Also:
-
MH_PRELOAD
public static final int MH_PRELOAD- See Also:
-
MH_DYLIB
public static final int MH_DYLIB- See Also:
-
MH_DYLINKER
public static final int MH_DYLINKER- See Also:
-
MH_BUNDLE
public static final int MH_BUNDLE- See Also:
-
MH_DYLIB_STUB
public static final int MH_DYLIB_STUB- See Also:
-
MH_DSYM
public static final int MH_DSYM- See Also:
-
MH_KEXT_BUNDLE
public static final int MH_KEXT_BUNDLE- See Also:
-
-
Constructor Details
-
MachoDumpReader
-
-
Method Details
-
isMACHO
public static boolean isMACHO(byte[] data) -
getReaderForFile
-
getReaderForFile
public static ICore getReaderForFile(ImageInputStream in) throws IOException, InvalidDumpFormatException -
getCommandLine
- Throws:
DataUnavailableException
-
getPlatform
- Specified by:
getPlatformin interfaceICore- Returns:
- Platform that created the dump
-
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:
-
getAddressSpaces
- Specified by:
getAddressSpacesin interfaceICore- Returns:
- Address spaces held in this core dump
-
getProperties
- Specified by:
getPropertiesin interfaceICore- Returns:
- Property set for this core
-
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-
-
getExecutable
-
getModules
-
getProcessId
public long getProcessId() -
getThreads
- Throws:
CorruptDataException
-
getSignalNumber
- Throws:
DataUnavailableException
-
readMachFile
public MachoDumpReader.MachFile64 readMachFile(long fileOffset) throws IOException, InvalidDumpFormatException -
readHeader
public MachoDumpReader.MachHeader64 readHeader(long offset) throws IOException, InvalidDumpFormatException
-