Chapter 5: Editing Code and Data
The graphical interface gives you a number of context-dependent and
context-independent editing commands. From several screens, you can bring
up the source file that contains the source line or symbol you are viewing in
The interface will choose the "vi" editor as its default editor, unless you specify
another editor by setting an X resource. Refer to the chapter "Configuring
the Debugger" for more information about setting this resource.
Remember to re-compile
When you use the editor to change a source code file, you will need to
re-compile the source file. You can recompile with a click of the mouse if you
define the Make action key to compile the target program.
To edit source code from the Code window
• Place the mouse pointer over the line you want to edit. Select Edit source
from the Code window pop-up menu.
The debugger will start the editor in a new X window. The cursor in the editor
window will be on the same line of code as the mouse pointer in the Code
After editing the file, you quit the edit session by the standard method for the
You will need to re-compile the source file. You can recompile with a click of
the mouse if you define the Make action key to compile the target program.