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:
parent
d519e8afd9
commit
be809a8ebc
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue