mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +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) {
|
if (stackframe != null) {
|
||||||
frameNum = stackframe.getLevel();
|
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);
|
MIStackSelectFrame frame = factory.createMIStackSelectFrame(frameNum);
|
||||||
try {
|
try {
|
||||||
// Set ourself as the current thread first.
|
// Set ourself as the current thread first.
|
||||||
|
|
Loading…
Add table
Reference in a new issue