GDB Debugging Utility Commands

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.