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:
parent
f5a5e58c82
commit
b3ae7fedaa
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue