Personal feeling the switch from the Windows platform to the Linux platform is an inappropriate place to use the debugger. Because under the Windows debugger basically relies on the shortcut key and the image interface to complete the operation, even if is WinDbg this kind of pseudo command line tool, the command is also very simple to remember.
GDB, by contrast, is very complicated, and some of the GDB articles found on the web are often made with no eggs, so open a post to keep track of the commands that are commonly used.
Plug-in Installation
1.gdb-peda
This is a necessary artifact when debugging, GitHub address in: Https://github.com/longld/peda, its installation of two simple commands can be completed:
1.git Clone Https://github.com/longld/peda.git ~/peda
2.echo "Source ~/peda/peda.py" >> ~/.gdbinit
A practical command of Peda Checksec detects security.
File path Append files
Run to execute, abbreviated R
Break * Address Breakpoint, abbreviated B
X/WX $ESP Display the contents of the stack in 4-byte 16 binary
GDB Debugging Utility Commands