Search in sources :

Example 1 with JCImageStackFrame

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

the class ImageProcessBuilder method addImageStackFrame.

public ImageStackFrame addImageStackFrame(long nativeThreadID, String name, long baseAddress, long procAddress) {
    ImagePointer pointer = fImageAddressSpace.getPointer(nativeThreadID);
    JCImageThread thread = fImageProcess.getImageThread(pointer);
    ImagePointer ip = procAddress != IBuilderData.NOT_AVAILABLE ? fImageAddressSpace.getPointer(procAddress) : null;
    JCImageStackFrame stackFrame = new JCImageStackFrame(name, null, ip);
    if (thread != null) {
        JCImageThread thrd = (JCImageThread) thread;
        thrd.addImageStackFrame(stackFrame);
    }
    return stackFrame;
}
Also used : JCImageThread(com.ibm.dtfj.image.javacore.JCImageThread) ImagePointer(com.ibm.dtfj.image.ImagePointer) JCImageStackFrame(com.ibm.dtfj.image.javacore.JCImageStackFrame)

Aggregations

ImagePointer (com.ibm.dtfj.image.ImagePointer)1 JCImageStackFrame (com.ibm.dtfj.image.javacore.JCImageStackFrame)1 JCImageThread (com.ibm.dtfj.image.javacore.JCImageThread)1