Search in sources :

Example 11 with ImageFactory

use of com.ibm.dtfj.image.ImageFactory in project openj9 by eclipse.

the class PHDImageFactory method getMetaImage.

private Image getMetaImage(File file, File metaFile) throws IOException, FileNotFoundException {
    ImageFactory metaFactory = getMetaFactory();
    Image i2;
    try {
        i2 = metaFactory.getImage(metaFile);
    } catch (RuntimeException e) {
        // javacore reader isn't that robust
        FileNotFoundException ex = new FileNotFoundException(MessageFormat.format("Problem opening dump {0} metafile {1}", file, metaFile));
        ex.initCause(e);
        throw ex;
    }
    return i2;
}
Also used : ImageFactory(com.ibm.dtfj.image.ImageFactory) FileNotFoundException(java.io.FileNotFoundException) Image(com.ibm.dtfj.image.Image)

Aggregations

ImageFactory (com.ibm.dtfj.image.ImageFactory)11 Image (com.ibm.dtfj.image.Image)7 ImageAddressSpace (com.ibm.dtfj.image.ImageAddressSpace)5 ImageProcess (com.ibm.dtfj.image.ImageProcess)4 J9DDRImageFactory (com.ibm.j9ddr.view.dtfj.image.J9DDRImageFactory)4 JavaRuntime (com.ibm.dtfj.java.JavaRuntime)3 File (java.io.File)3 Iterator (java.util.Iterator)3 Test (org.junit.Test)3 CorruptData (com.ibm.dtfj.image.CorruptData)2 ImageModule (com.ibm.dtfj.image.ImageModule)2 IOException (java.io.IOException)2 CorruptDataException (com.ibm.dtfj.image.CorruptDataException)1 DataUnavailable (com.ibm.dtfj.image.DataUnavailable)1 ImageSection (com.ibm.dtfj.image.ImageSection)1 ImageSymbol (com.ibm.dtfj.image.ImageSymbol)1 JavaObject (com.ibm.dtfj.java.JavaObject)1 JavaVMInitArgs (com.ibm.dtfj.java.JavaVMInitArgs)1 JavaVMOption (com.ibm.dtfj.java.JavaVMOption)1 FileNotFoundException (java.io.FileNotFoundException)1