Search in sources :

Example 6 with IVMData

use of com.ibm.j9ddr.IVMData in project openj9 by eclipse.

the class DDRTestLauncher method main.

public static void main(String[] args) throws Exception {
    // This code would be located in the DTFJ ImageFactory
    String testName = args[0];
    String coreFileName = args[1];
    List<String> remainingArguments = new LinkedList<String>();
    for (int i = 2; i < args.length; i++) {
        remainingArguments.add(args[i]);
    }
    ICore core = CoreReader.readCoreFile(coreFileName);
    List<IAddressSpace> addressSpaces = new ArrayList<IAddressSpace>(core.getAddressSpaces());
    IVMData aVMData = VMDataFactory.getVMData(addressSpaces.get(0).getProcesses().iterator().next());
    aVMData.bootstrap(testName, remainingArguments);
}
Also used : IAddressSpace(com.ibm.j9ddr.corereaders.memory.IAddressSpace) ArrayList(java.util.ArrayList) ICore(com.ibm.j9ddr.corereaders.ICore) LinkedList(java.util.LinkedList) IVMData(com.ibm.j9ddr.IVMData)

Aggregations

IVMData (com.ibm.j9ddr.IVMData)6 IOException (java.io.IOException)4 IAddressSpace (com.ibm.j9ddr.corereaders.memory.IAddressSpace)3 DataUnavailableException (com.ibm.j9ddr.DataUnavailableException)2 IProcess (com.ibm.j9ddr.corereaders.memory.IProcess)2 LinkedList (java.util.LinkedList)2 CorruptDataException (com.ibm.dtfj.image.CorruptDataException)1 CorruptDataException (com.ibm.j9ddr.CorruptDataException)1 ICore (com.ibm.j9ddr.corereaders.ICore)1 JVMNotDDREnabledException (com.ibm.j9ddr.exceptions.JVMNotDDREnabledException)1 JVMNotFoundException (com.ibm.j9ddr.exceptions.JVMNotFoundException)1 MissingDDRStructuresException (com.ibm.j9ddr.exceptions.MissingDDRStructuresException)1 DTFJCorruptDataException (com.ibm.j9ddr.view.dtfj.DTFJCorruptDataException)1 J9DDRImageAddressSpace (com.ibm.j9ddr.view.dtfj.image.J9DDRImageAddressSpace)1 PrintWriter (java.io.PrintWriter)1 StringWriter (java.io.StringWriter)1 Method (java.lang.reflect.Method)1 ArrayList (java.util.ArrayList)1 Logger (java.util.logging.Logger)1