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 Into" action. The implementation should be similar to jpda debugger. If program is stopped, button "Step Into" should be enabled. If user pressed button "Step Into", the execution should be resumed, stopping when the beginning of the next source line is reached, if the next source line is not a function call. If it is, stop at the first instruction of the called function.
I upgraded priority to P1 because this feature should be implemented in Milestone 2B.
The suggested fix is to connect button "Step Into" via StepActionProvider with method stepInto() in GdbDebuggerImpl.java, which calls method exec_step() in GdbProxy.java, which sends "-exec-step" 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, if the next source line is not a function call. * If it is, stop at the first instruction of the called function. */ public void stepInto() { setState(STATE_RUNNING); gdb.exec_step(); } 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 Into" 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.