Looking at the Source Files. Expert Debugging

The debugger supports commands to perform the following operations with source files:

 

browse_source_command

        : source_directory_mapping_command

        | source_searchlist_command

        | select_source_file_command

        | list_source_file_command

        | search_source_file_command

 

Special debugging information that the compiler puts in the .o files correlates the machine instructions and data back to the source files and the positions they came from.

Source files are compiled and linked into executable files. During debugging, the debugger tries to find these source files to display them for you. If the source files have moved, or if the paths to them are relative, the debugger may not be able to locate them. All the information the debugger needs comes from the executable files or shared libraries, not from the source files.