Search in sources :

Example 6 with IAddressSpace

use of com.ibm.j9ddr.corereaders.memory.IAddressSpace in project openj9 by eclipse.

the class MiniDumpReader method getAddressSpaces.

public List<IAddressSpace> getAddressSpaces() {
    if (null == addressSpaces) {
        ProcessAddressSpace addressSpace = new WindowsProcessAddressSpace(is64Bit() ? 8 : 4, ByteOrder.LITTLE_ENDIAN, this);
        addressSpace.addMemorySources(_memoryRanges);
        addressSpaces = new ArrayList<IAddressSpace>(1);
        addressSpaces.add(addressSpace);
    }
    return addressSpaces;
}
Also used : ProcessAddressSpace(com.ibm.j9ddr.corereaders.memory.ProcessAddressSpace) IAddressSpace(com.ibm.j9ddr.corereaders.memory.IAddressSpace)

Example 7 with IAddressSpace

use of com.ibm.j9ddr.corereaders.memory.IAddressSpace in project openj9 by eclipse.

the class J9DDRImage method getAddressSpaces.

public Iterator<J9DDRImageAddressSpace> getAddressSpaces() {
    Collection<? extends IAddressSpace> addressSpaces = coreFile.getAddressSpaces();
    List<J9DDRImageAddressSpace> dtfjList = new LinkedList<J9DDRImageAddressSpace>();
    for (IAddressSpace thisAs : addressSpaces) {
        dtfjList.add(new J9DDRImageAddressSpace(thisAs));
    }
    return dtfjList.iterator();
}
Also used : IAddressSpace(com.ibm.j9ddr.corereaders.memory.IAddressSpace) LinkedList(java.util.LinkedList)

Example 8 with IAddressSpace

use of com.ibm.j9ddr.corereaders.memory.IAddressSpace 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

IAddressSpace (com.ibm.j9ddr.corereaders.memory.IAddressSpace)8 IProcess (com.ibm.j9ddr.corereaders.memory.IProcess)4 IVMData (com.ibm.j9ddr.IVMData)3 ICore (com.ibm.j9ddr.corereaders.ICore)3 IOException (java.io.IOException)3 ArrayList (java.util.ArrayList)3 LinkedList (java.util.LinkedList)3 IMemoryRange (com.ibm.j9ddr.corereaders.memory.IMemoryRange)1 ProcessAddressSpace (com.ibm.j9ddr.corereaders.memory.ProcessAddressSpace)1 JVMNotDDREnabledException (com.ibm.j9ddr.exceptions.JVMNotDDREnabledException)1 JVMNotFoundException (com.ibm.j9ddr.exceptions.JVMNotFoundException)1 MissingDDRStructuresException (com.ibm.j9ddr.exceptions.MissingDDRStructuresException)1 J9DDRImageAddressSpace (com.ibm.j9ddr.view.dtfj.image.J9DDRImageAddressSpace)1 FileNotFoundException (java.io.FileNotFoundException)1 PrintWriter (java.io.PrintWriter)1 StringWriter (java.io.StringWriter)1 Method (java.lang.reflect.Method)1 Logger (java.util.logging.Logger)1 BeforeClass (org.junit.BeforeClass)1