1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Check if the level is already set in setCurrentStackFrame() if yes

make it a noop.
This commit is contained in:
Alain Magloire 2002-10-10 22:04:59 +00:00
parent f5a5e58c82
commit b3ae7fedaa

View file

@ -99,6 +99,14 @@ public class CThread extends CObject implements ICDIThread {
if (stackframe != null) {
frameNum = stackframe.getLevel();
}
// Check to see if we are already at this level
StackFrame current = getCurrentStackFrame();
if (current.getLevel() == frameNum) {
// noop
return;
}
MIStackSelectFrame frame = factory.createMIStackSelectFrame(frameNum);
try {
// Set ourself as the current thread first.