Changeset 1832 for trunk/org.modelica.mdt.debug.core/src/org
- Timestamp:
- 10/08/13 13:52:04 (11 years ago)
- 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 107 107 public List<GDBStackFrame> fGDBStackFrames = null; 108 108 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! */ 110 110 private static int MAX_STACK_DEPTH = 111 111 Integer.parseInt(PreferenceManager.getOMCGDBMaxStackDepth()); … … 205 205 // get the stack depth 206 206 int depth = getStackInfoDepth(); 207 if ( depth > getMaxStackDepth())207 if (getMaxStackDepth() > 0 && depth > getMaxStackDepth()) 208 208 depth = getMaxStackDepth() - 1; 209 209 // get the stack frames from GDB … … 428 428 stackDepth = 1; 429 429 } 430 if (MAX_STACK_DEPTH < 0)431 MAX_STACK_DEPTH = stackDepth;432 430 return stackDepth; 433 431 }
Note: See TracChangeset
for help on using the changeset viewer.