Whole document tree
    

Whole document tree

Debugging with GDB: Running
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4. Running Programs Under GDB

When you run a program under GDB, you must first generate debugging information when you compile it.

You may start GDB with its arguments, if any, in an environment of your choice. If you are doing native debugging, you may redirect your program's input and output, debug an already running process, or kill a child process.

4.1 Compiling for debugging  
4.2 Starting your program  
4.3 Your program's arguments  
4.4 Your program's environment  

4.5 Your program's working directory  
4.6 Your program's input and output  
4.7 Debugging an already-running process  
4.8 Killing the child process  

4.9 Debugging programs with multiple threads  
4.10 Debugging programs with multiple processes  



This document was generated by root on January, 30 2002 using texi2html