OAR

RTEMS GNU Tools On-Line Library


Source

PREV UP NEXT Bookshelf Debugging with GDB

Chapter 7: Examining Source Files

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

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

  • List Printing source lines
  • Search Searching source files
  • Source Path Specifying source directories
  • Machine Code Source and machine code

  • PREV UP NEXT Bookshelf Debugging with GDB

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.