Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Cortell2006-11-08 22:04:50 +0000
committerJohn Cortell2006-11-08 22:04:50 +0000
commita37e5688730582ccadca6f5f139ae36d9d98fd56 (patch)
tree901336a7a024de34c947fcf3ab13df9a0c8377aa
parent181d4104c18dd40afbd6e5c8f4f38fcf5b21fd22 (diff)
downloadorg.eclipse.cdt-a37e5688730582ccadca6f5f139ae36d9d98fd56.tar.gz
org.eclipse.cdt-a37e5688730582ccadca6f5f139ae36d9d98fd56.tar.xz
org.eclipse.cdt-a37e5688730582ccadca6f5f139ae36d9d98fd56.zip
Fixed bugzilla report 163862. Globals don't show if there are no locals in the Variables view
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java
index 115c840cd5..cd89f71de5 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CStackFrame.java
@@ -181,7 +181,7 @@ public class CStackFrame extends CDebugElement implements ICStackFrame, IRestart
* @see org.eclipse.debug.core.model.IStackFrame#hasVariables()
*/
public boolean hasVariables() throws DebugException {
- return ( isDisposed() ) ? false : getVariables0().size() > 0;
+ return ( isDisposed() ) ? false : (getVariables0().size() > 0 || getGlobals().length > 0);
}
/* (non-Javadoc)

Back to the top