1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

Fixed bugzilla report 163862. Globals don't show if there are no locals in the Variables view.

This commit is contained in:
John Cortell 2006-11-08 21:50:37 +00:00
parent a7ce8026bb
commit d349bb6921

View file

@ -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)