使用eclipse+gdb進行arm板嵌入式linux遠端偵錯的配置方法__linux

來源:互聯網
上載者:User

1、安裝eclipse外掛程式:Zylin Embedded CDT
進入help菜單 -> Software Updates... -> Available Software -> Add Site
輸入http://opensource.zylin.com/zylincdt
Install

2、在目標板上運行gdbserver
gdbserver 192.168.4.244:2345  foo
其中192.168.4.244是遠程主機的IP,2345是目標板使用的連接埠。foo是要調試的可執行檔。
可以通過掛載NFS分區,直接調試NFS分區裡的程式,這樣就避免每次調試都要複製程式到目標板上。

3、配置Zylin
進入Run菜單 -> Debug Configurations -> Zylin Embedded debug(Native)
建立一個調試配置
進入main選項卡,選擇要調試的C/C++工程;
進入debugger選項卡,選擇交叉編譯的gdb的路徑,例如我的是:/opt/nxp/gcc-4.3.2-glibc-2.7/gdb/bin/arm_v5t_le-gdb;
進入commands選項卡,在初始化命令裡填寫目標板的IP和連接埠,例如target remote 192.168.4.247:2345;

 

本文來自CSDN部落格,轉載請標明出處:http://blog.csdn.net/ZatoNeedHelp/archive/2010/08/13/5808291.aspx

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.