5.3. Controlling Execution

Now you are already familiar with some of the gdb commands used for controlling execution of a program. The commands you have already used are run, quit and next commands. In this section you will learn some more commands that can be used to control execution of the program. The most commonly used commands to control execution of a program in gdb are as follows:

  • The run command is used to start execution of a program. If the program is already running, you can restart the execution right from the beginning using the run command.

  • The quit command will quit the debugger.

  • The kill command stops debugging but does not quit the debugger.

  • The continue command starts executing program from the current position. The difference ...

Get Linux Development Platform: Configuring, Using, and Maintaining a Complete Programming Environment, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.