[Reprinted] GDB Reverse Debugging (Reverse Debugging), gdbdebugging

Source: Internet
Author: User

[Reprinted] GDB Reverse Debugging (Reverse Debugging), gdbdebugging

I remember that when I first started learning C language, I used vc's F10 to debug the program. It was often a burst of crazy press, and I accidentally pressed it. As a result, I had to start over again. At that time, I asked my teacher if I could go back a few steps. My teacher told me sadly, no, but I didn't go back when I opened the bow. I still remember this sentence, and I still think so.

It was not until today that GDB had a reverse debugging BUG. This is a blog about it! Blog address

I personally understand that this reverse debugging requires the program to start the record through the record command after running, and then execute it to perform reverse debugging, that is to say, this program only records the field information of each debugging step, and then enters an rn or rs to return the information of that record!

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.