Class MachoDumpReader
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
Modifier and TypeClassDescriptionclass
class
static final class
static final class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
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
executablePathHint
(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.long
static ICore
static ICore
int
static boolean
isMACHO
(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, 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, 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:
getPlatform
in interfaceICore
- Returns:
- Platform that created the dump
-
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:
-
getAddressSpaces
- Specified by:
getAddressSpaces
in interfaceICore
- Returns:
- Address spaces held in this core dump
-
getProperties
- Specified by:
getProperties
in interfaceICore
- Returns:
- Property set for this core
-
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
-
-
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
-