return getLast(eThread);
eStackFrame=getLast(eThread).getStackFrame();
}
StackFrame stackFrame = frames.get(index);
EStackFrameLocation ret=new EStackFrameLocation();
ret.setStackFrame(eStackFrame);
ret.setLineNumber(stackFrame.location().lineNumber());
if(eStackFrame==null)
{
eStackFrame=new EStackFrame();
ret.setStackFrame(eStackFrame);
eStackFrame.setThread(eThread);
eStackFrame.setDepth(frames.size()-index);
eStackFrame.setMethod(createQueryMethod(stackFrame.location().method()));
if(stackFrame.thisObject()!=null)
eStackFrame.setThisObject(createQueryObjectReference(stackFrame.thisObject()));
index++;
if(index<frames.size())
{
eStackFrame.setPreviousStackFrameLocation(getStackFrameLocation(eThread, frames, index));
}
try
{
eStackFrame.setSourceName(stackFrame.location().sourceName());
}
catch (AbsentInformationException e)
{
System.out.println(e.getClass().getName() );
}