Ignore:
Timestamp:
10/08/13 13:52:04 (11 years ago)
Author:
adrpo
Message:
  • mdt 0.7.32 + fix a bug with handling of gdb stack depth in 0.7.31
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.debug.core/src/org/modelica/mdt/debug/gdb/core/model/thread/GDBThread.java

    r1831 r1832  
    107107    public List<GDBStackFrame> fGDBStackFrames = null;
    108108    private GDBStackFrame fCurrentGDBStackFrame = null;
    109     /* get it from preferences and if is -1 assign it inside getStackInfoDepth! */
     109    /* get it from preferences and if is -1 use getStackInfoDepth! */
    110110    private static int MAX_STACK_DEPTH =
    111111            Integer.parseInt(PreferenceManager.getOMCGDBMaxStackDepth());
     
    205205                        // get the stack depth
    206206                        int depth = getStackInfoDepth();
    207                         if (depth > getMaxStackDepth())
     207                        if (getMaxStackDepth() > 0 && depth > getMaxStackDepth())
    208208                            depth = getMaxStackDepth() - 1;
    209209                        // get the stack frames from GDB
     
    428428            stackDepth = 1;
    429429        }
    430         if (MAX_STACK_DEPTH < 0)
    431             MAX_STACK_DEPTH = stackDepth;
    432430        return stackDepth;
    433431    }
Note: See TracChangeset for help on using the changeset viewer.