diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIStack.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIStack.java index 11202600730..46d2c161a85 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIStack.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIStack.java @@ -901,8 +901,8 @@ public class MIStack extends AbstractDsfService // still be re-used. StackDepthInfo cachedDepth = fStackDepthCache.get(execDmc.getThreadId()); if (cachedDepth != null) { - if ((maxDepth == 0 && cachedDepth.maxDepthRequested == 0) || - (maxDepth != 0 && (cachedDepth.maxDepthRequested == 0 || cachedDepth.maxDepthRequested >= maxDepth)) ) + if (cachedDepth.maxDepthRequested == 0 || + (maxDepth != 0 && cachedDepth.maxDepthRequested >= maxDepth)) { rm.setData(cachedDepth.returnedDepth); rm.done();