Class SnapBaseCommand
java.lang.Object
com.ibm.j9ddr.tools.ddrinteractive.Command
com.ibm.j9ddr.tools.ddrinteractive.commands.SnapBaseCommand
- All Implemented Interfaces:
ICommand
- Direct Known Subclasses:
SnapFormatCommand
,SnapTraceCommand
Debug extension superclass to extract trace buffers from a core dump
so they can be dumped or formatted.
-
Nested Class Summary
Nested classes/interfaces declared in class com.ibm.j9ddr.tools.ddrinteractive.Command
Command.CommandDescription
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
extractTraceData
(Context context, PrintStream out) Used by subclasses to actually walk the trace data in the core.getCStringAtAddress
(IProcess process, long address) getCStringAtAddress
(IProcess process, long address, long maxLength) protected abstract void
writeBytesToTrace
(Context context, long address, int bufferSize, PrintStream out) protected abstract void
writeHeaderBytesToTrace
(Context context, byte[] headerBytes, PrintStream out) Methods declared in class com.ibm.j9ddr.tools.ddrinteractive.Command
addCommand, addSubCommand, dbgFindPatternInRange, getCommandDescriptions, getCommandNames, printDetailedHelp, recognises
-
Constructor Details
-
SnapBaseCommand
public SnapBaseCommand()
-
-
Method Details
-
writeHeaderBytesToTrace
protected abstract void writeHeaderBytesToTrace(Context context, byte[] headerBytes, PrintStream out) -
writeBytesToTrace
protected abstract void writeBytesToTrace(Context context, long address, int bufferSize, PrintStream out) -
extractTraceData
protected void extractTraceData(Context context, PrintStream out) throws DDRInteractiveCommandException Used by subclasses to actually walk the trace data in the core. Calls writeHeaderBytesToTrace and writeBytesToTrace to actually process the trace data.- Parameters:
context
-out
-- Throws:
DDRInteractiveCommandException
-
getCStringAtAddress
- Throws:
CorruptDataException
-
getCStringAtAddress
public String getCStringAtAddress(IProcess process, long address, long maxLength) throws CorruptDataException - Throws:
CorruptDataException
-