diff options
author | Marc Khouzam | 2010-05-04 13:20:27 +0000 |
---|---|---|
committer | Marc Khouzam | 2010-05-04 13:20:27 +0000 |
commit | 14c231b3ca2dbdd71dfd24ddd82d05d18956a2f5 (patch) | |
tree | 5b1c3b3744384e6b2d6fda11e4dc42daf1bdae9f /dsf-gdb | |
parent | 12eb24805f00c7362b0f1fd3f9a3f3b5de3b1dc6 (diff) | |
download | org.eclipse.cdt-14c231b3ca2dbdd71dfd24ddd82d05d18956a2f5.tar.gz org.eclipse.cdt-14c231b3ca2dbdd71dfd24ddd82d05d18956a2f5.tar.xz org.eclipse.cdt-14c231b3ca2dbdd71dfd24ddd82d05d18956a2f5.zip |
Bug 311416: Small simplification in logic check.
Diffstat (limited to 'dsf-gdb')
-rw-r--r-- | dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIStack.java | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |