Cool! Use sourcesight for kernel source code debugging

Source: Internet
Author: User

Cool! Use sourcesight for kernel source code debugging

Hedgehog @ http://blog.csdn.net/littlehedgehog

 

 

 

 

 

When I accidentally saw such a good thing, I did not dare to enjoy it exclusively. I adjusted the text slightly. I also told me the problem, so that I would not try again later.

Original post:

Http://www.oldlinux.org/oldlinux/viewthread.php? Tid = 11074 & extra = Page % 3d1

 

The original environment author has been basically configured. I have uploaded it to the csdn resource bar:

Http://download.csdn.net/source/520532

Http://download.csdn.net/source/520530

Download the two packages and decompress them. Here I will move them to D :/.

1. Open mingw32.bat in the linux-0.11-gdb/linux-0.11 directory. Enter "make" and wait until make is complete.

2. Run start_bochs.bat and press enter to display waiting for GDB connection on localhost: 1234.

3. Run insight.exe file-> open system.exe file-> Target settings target in the linux-0.11/toolsdirectory drop-down list select remote/tcp, hostname: localhost, Prot: 1234 view-> console, open the console run-> Run, run, stop at startup_32

Enter the following command in the console

(GDB) Break start

Breakpoint 2 at 0x6624: file init/Main. C, line 105.

(GDB) handle SIGSEGV noprint nostop ignore

(GDB) cont continuing. breakpoint 2, start () at init/Main. C: 105

:

 

Next, you can debug it in the sourceinsight window!

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.