The following tables list some useful commands of the GNU Debugger (gdb). For a complete list of available commands, see the gdb online documentation.[94]
Command | Description |
---|---|
| Starts gdb with |
| Exits the debugger. |
Command | Description |
---|---|
| Starts debugged program (with |
| Attaches the debugger to the running process with |
Command | Description |
---|---|
| Sets a breakpoint at the beginning of the specified |
| Sets a breakpoint at the start of the code for that |
| Sets a breakpoint at the specified |
| Lists information about existing breakpoints. |
| Removes previously set breakpoints specified by their |
Command | Description |
---|---|
| Executes one machine instruction. Will step into subfunctions. |
| Executes one machine instruction. Will not enter subfunctions. |
| Resumes execution. |
Command | Description |
---|---|
| Prints the specified number of objects ( Size: Format: |
Command | Description |
---|---|
| Lists registers and their contents. |
| Prints a backtrace of all stack frames. |
| Dumps a range of memory around |