GDB Common Command Logging

Source: Internet
Author: User
GDB Common Commands

Recently in the study of Nginx source code, GDB is very convenient for debugging, before this article has studied how to use GDB debugging nginx:https://www.cnblogs.com/yjf512/archive/2012/05/10/2494635.html
GDB's commands were forgotten in the recent use. Here to review.

Here's a whole lot of information: https://www.gitbook.com/book/wizardforcel/100-gdb-tips

Common commands to start a project and breakpoints

Start

Hit a temporary breakpoint

Tb

Break point

B

Listing code

L

Single Step operation

N

Enter function debugging

Step

Jump out of functions

Finish

Continue running

C

Viewing breakpoint information

Info b

Remove a breakpoint

Delete

Fork into sub-process

Set Follow-fork-mode Child

Fork into the parent process

Set Follow-fork-mode Parent

GDB Common Command Logging

Related Article

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.