Running And Stopping
- in the shell, 'gdb <executable> runs gdb on the desired program.
- ... 'gdb <executable> <PID>' attaches gdb to the
already-running process with the given process id (PID).
- Use the 'run' command to run the program. use 'run <parameters>' to
give it parameters.
- when the program runs, you can suspend it with ctrl-C, and get a gdb
prompt.
Originally written by
guy keren