This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This is IZ for a new feature: "Step Over" action. The implementation should be similar to jpda debugger. If program is stopped, button "Step Over" should be enabled. If user pressed button "Step Over", the execution should be resumed, stopping when the beginning of the next source line is reached.
I upgraded priority to P1 because this feature should be implemented in Milestone 2B.
The suggested fix is to connect button "Step Over" via StepActionProvider with method stepOver() in GdbDebuggerImpl.java, which calls method exec_next() in GdbProxy.java, which sends "-exec-next" command to gdb. To implement this solution a new method is created: File: cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/GdbDebuggerImpl.java /** * Resumes execution of the inferior program, stopping * when the beginning of the next source line is reached. */ public void stepOver() { setState(STATE_RUNNING); gdb.exec_next(); } The fix is integrated in "cnd-nb50-dev" branch. ----------------------------------------------- Tag: cnd-nb50-dev User: NikMolchanov Date: 2006/07/13 18:53:13 Modified: cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/GdbDebuggerImpl.java Log: IZ 80279 *Gdb-lite* Implement "Step Into" action - added public method stepInto() IZ 80281*Gdb-lite* Implement "Step Over" action - added public method stepOver() Revision: 1.1.2.16 ------------------------------------------------ Tag: cnd-nb50-dev User: NikMolchanov Date: 2006/07/13 18:55:00 Modified: cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/actions/StepActionProvider.java Log: IZ 80279 *Gdb-lite* Implement "Step Into" action - use public method debuggerImpl.stepInto() IZ 80281*Gdb-lite* Implement "Step Over" action - use public method debuggerImpl.stepOver() Revision: 1.1.2.3 ------------------------------------------------ For now button "Step Over" is always enabled while the debugging session is active. Additional changes are necessary to disable this button while the program is running, and enable it back when the program is stopped.
Is this issue ready to be marked as fixed? If so, please change it.
The functionality is implemented and it seems to work just fine. I changed the status to FIXED. If there are any problems feel free to reopen this issue or file another one.