www.delorie.com/gnu/docs/gdb/gdb_16.html   search  
Buy the book!

Debugging with GDB

[ < ] [ > ]   [ << ] [ 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  

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003