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;
}
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();
}
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);
}
Aggregations