1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 311416 - [vm][cache] Stack frames missing in debug view.

This commit is contained in:
Pawel Piech 2010-05-04 04:54:41 +00:00
parent 09e2717298
commit ea4c22620a

View file

@ -901,7 +901,9 @@ public class MIStack extends AbstractDsfService
// still be re-used.
StackDepthInfo cachedDepth = fStackDepthCache.get(execDmc.getThreadId());
if (cachedDepth != null) {
if (cachedDepth.maxDepthRequested == 0 || cachedDepth.maxDepthRequested >= maxDepth) {
if ((maxDepth == 0 && cachedDepth.maxDepthRequested == 0) ||
(maxDepth != 0 && (cachedDepth.maxDepthRequested == 0 || cachedDepth.maxDepthRequested >= maxDepth)) )
{
rm.setData(cachedDepth.returnedDepth);
rm.done();
return;