1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 15:05:36 +02:00

fetch the top stack frame when necessary.

This commit is contained in:
Alain Magloire 2002-09-19 00:58:25 +00:00
parent d519e8afd9
commit be809a8ebc

View file

@ -38,7 +38,13 @@ public class CThread extends CObject implements ICDIThread {
return Integer.toString(id);
}
StackFrame getCurrentStackFrame() {
StackFrame getCurrentStackFrame() throws CDIException {
if (currentFrame == null) {
ICDIStackFrame[] frames = getStackFrames();
if (frames.length > 0) {
currentFrame = (StackFrame)frames[0];
}
}
return currentFrame;
}