Community
Participate
Working Groups
The debug view content flicker when performing stepping in EDC debugger (e.g. the Win32 debugger), the stack frames come and go quickly.
*** cdt cvs genie on behalf of lwang *** Bug 321379 & 321384: [EDC] Debug view flicker in stepping; thread losing focus in stepping. [*] RunControl.java 1.27 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/internal/services/dsf/RunControl.java?root=Tools_Project&r1=1.26&r2=1.27 [*] DefaultEDCSelectionPolicy.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc.ui/src/org/eclipse/cdt/debug/edc/ui/DefaultEDCSelectionPolicy.java?root=Tools_Project&r1=1.3&r2=1.4
The reason for the flickering is a resumeEvent is fired by EDC at the beginning of a step, resulting in removal of all frames from debug view, then when the stepping ends, the frames are reconstructed and displayed in debug view again. The solution is not fire the resumeEvent unless the context is still running 2 seconds after a step/resume command is issued. For example, after resuming a thread, if no breakpoint is hit within two seconds, user will see the thread as running in two seconds, otherwise user will see the thread hit a breakpoint and no flicker in the debug view. Bug 321384 depends on this bug. A patch is attached there for both the bugs.