<span style="color:rgb(55,55,55); font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:15px; font-weight:300; line-height:24px"></span>
<p style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:15px; font-style:inherit; margin-top:0px; margin-bottom:1.625em; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-bottom:0px; vertical-align:baseline"> 做嵌入式Linux开发也不用再羡慕windows程序员VS集成开发环境的强大,我们同样能够搭建出给力的IDE。</p>
<p style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:15px; font-style:inherit; margin-top:0px; margin-bottom:1.625em; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-bottom:0px; vertical-align:baseline"> 今天在这里记录一下我使用Eclipse-cdt,gdb,gdbserver搭建远程arm调试的过程。</p>
<p style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:15px; font-style:inherit; margin-top:0px; margin-bottom:1.625em; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-bottom:0px; vertical-align:baseline"> 首先介绍下,嵌入式Linux的GDB调试环境由Host和Target两部分组成,Host端可以理解为本机,Target端为嵌入式设备。<br> Host端使用arm-linux-gdb,Target 端使用gdbserver。<br> 调试时,应用程序在嵌入式目标系统上通过运行,而gdb调试在Host端。</p>
<ol style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:15px; font-style:inherit; margin-top:0px; margin-right:0px; margin-bottom:1.625em; margin-left:2.5em; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; vertical-align:baseline; list-style-type:decimal; list-style-position:initial"><li><ol style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:15px; font-style:inherit; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:2.5em; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; vertical-align:baseline; list-style-type:upper-alpha; list-style-position:initial"><li style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:15px; font-style:inherit; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; vertical-align:baseline"> 编译gdb<br> 在GNU官网下载最新版<a href="http://ftp.gnu.org/gnu/gdb/" rel="noopener noreferrer" style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:15px; font-style:inherit; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; vertical-align:baseline; color:rgb(25,130,209); text-decoration:none" target="_blank" title="Download gdb">GDB</a> ,我这里下载的是7.2版本<a href="http://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.gz" style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:15px; font-style:inherit; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; vertical-align:baseline; color:rgb(25,130,209); text-decoration:none">gdb-7.2.tar.gz</a></li></ol>
</li></ol>
<pre style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:13px; font-style:inherit; margin-top:0px; margin-bottom:1.625em; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0.75em; padding-right:1.625em; padding-bottom:0.75em; padding-left:1.625em; vertical-align:baseline; background-color:rgb(244,244,244); font:normal normal normal 13px/normal 'Courier 10 Pitch',Courier,monospace; line-height:1.5; overflow-x:auto; overflow-y:auto">$ tar xvf gdb-7.2.tar.gz
$ cd gdb-7.2
$ ./configure <strong><span style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-family:inherit; font-size:13px; font-style:inherit; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; outline-width:0px; outline-style: |
|