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!