Contents|Index|Previous|Next

Running Programs Under GDB

The following documentation discusses running your programs with GDB.

Compiling for debugging

Starting your program

Your program’s arguments

Your program’s environment

Your program’s working directory

Your program’s input and output

Debugging an already-running process

Killing the child process

Additional process information

Debugging programs with multiple threads

Debugging programs with multiple processes

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. You may redirect your program’s input and output, debug an already running process, or kill a child process.