cool! 用sourcesight實現核心源碼級調試

來源:互聯網
上載者:User

cool! 用sourcesight實現核心源碼級調試

刺蝟@http://blog.csdn.net/littlehedgehog

 

 

 

 

 

無意間看到這麼好的東西,不敢獨享,稍微調整了下文字,另外把我遇到問題說下,免得後來的又來摸索。

原帖:

http://www.oldlinux.org/oldlinux/viewthread.php?tid=11074&extra=page%3D1

 

環境原作者已經基本配置完好,我已經上傳至csdn的資源欄:

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

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

下載兩個壓縮包後解壓。我這裡把它們移至到D:/。

1、在linux-0.11-gdb壓縮包中/linux-0.11目錄下開啟 MinGW32.bat 。輸入"make",等待make完畢。

2、運行start_bochs.bat,敲一下斷行符號,顯示waiting for gdb connection on localhost:1234

3、運行bin目錄下的insight.exe File->Open   開啟linux-0.11/tools目錄下的system.exe File->Target Settings Target下拉式清單中選擇Remote/TCP,hostname:localhost,prot:1234  View->Console,開啟控制台 Run->Run ,運行,停在startup_32

控制台中輸入以下命令

(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

:

 

接下來在sourceinsight視窗就可以調試了!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.