gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
gdb commands
- User
gdb commands
- Assistant
-
Start gdb:
- To start gdb, run the following command in the terminal: gdb [executable]
-
Set a breakpoint:
- Use the "break" command followed by the line number or function name where you want to set a breakpoint. For example: break main
-
Run the program:
- Use the "run" command to run the program until it reaches a breakpoint or finishes execution.
-
Continue execution:
- Use the "continue" command to resume execution after stopping at a breakpoint.
-
Print variable value:
- Use the "p" command followed by the variable name to print its current value. For example: p variable_name
-
List source code:
- Use the "list" command to display the source code around the current line. For example: list
-
Stack trace:
-