- 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
public abstract class SnapBaseCommand extends Command
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
-
-
Constructor Summary
Constructors Constructor Description SnapBaseCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
extractTraceData(Context context, PrintStream out)
Used by subclasses to actually walk the trace data in the core.String
getCStringAtAddress(IProcess process, long address)
String
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, printDetailedHelp
-
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.tools.ddrinteractive.ICommand
getCommandDescriptions, getCommandNames, recognises, run
-
-
-
-
Method Detail
-
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
public String getCStringAtAddress(IProcess process, long address) throws CorruptDataException
- Throws:
CorruptDataException
-
getCStringAtAddress
public String getCStringAtAddress(IProcess process, long address, long maxLength) throws CorruptDataException
- Throws:
CorruptDataException
-
-