Source (Debugging with ROCGDB)

Next: Data, Previous: Stack, Up: Top [Contents][Index]

## 9 Examining Source Files

ROCGDB can print parts of your program’s source, since the debugging information recorded in the program tells ROCGDB what source files were used to build it. When your program stops, ROCGDB spontaneously prints the line where it stopped. Likewise, when you select a stack frame (see Selecting a Frame), ROCGDB prints the line where execution in that frame has stopped. You can print other portions of source files by explicit command.

If you use ROCGDB through its GNU Emacs interface, you may prefer to use Emacs facilities to view source; see Using ROCGDB under GNU Emacs.