# gdb_study **Repository Path**: pingxiyan/gdb_study ## Basic Information - **Project Name**: gdb_study - **Description**: Learn GDB, Learn and record common GDB commands. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-21 - **Last Updated**: 2023-09-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Starting GDB: $ gdb name-of-executable # Commands table | Params | Description | |:------:| :-----------| | b/break | Add break point | | r/run | Runs the program until a breakpoint or error | | c | Continues running the program until the next breakpoint or error | | *finish | Continue to end of function. | | *f | Runs until the current function is finished | | s/step | step into next line or into function | | n/next/n N | step next line, don't into function | | p | Prints the current value of the variable "var" | | bt | Prints a stack trace | | u | Goes up a level in the stack | | d | Goes down a level in the stack | | q | Quits gdb | | *tui enable | Enable GDB Text User Interface | **Refer:** http://www.yolinux.com/TUTORIALS/GDB-Commands.html