基于acoral操作系統(tǒng)的調(diào)試器的研究與設(shè)計
本文選題:acoral 切入點:PB11MPCore 出處:《電子科技大學》2012年碩士論文
【摘要】:當前嵌入式技術(shù)炙手可熱,隨著其技術(shù)的不斷發(fā)展和完善,如今嵌入式系統(tǒng)越來越復雜,大大增加了引發(fā)軟件bug的可能性,這就凸顯了調(diào)試器在嵌入式系統(tǒng)開發(fā)中的作用。作為程序醫(yī)生,調(diào)試器在發(fā)現(xiàn)、消除軟件bug方面,有著不可替代的作用。與PC上傳統(tǒng)的單機調(diào)試不同,嵌入式系統(tǒng)由于受到軟硬件資源的限制,采用交叉調(diào)試技術(shù),即調(diào)試器分為目標機端和宿主機端兩部分。如何利用調(diào)試技術(shù)去除軟件中的bug,,提高調(diào)試效率,縮短軟件開發(fā)時間成了嵌入系統(tǒng)開發(fā)中的一個重要話題。 Acoral是一個由學生開發(fā)的嵌入式操作系統(tǒng),它開放源碼,具有支持多核和強實時的特性,是一款極具開發(fā)潛力的操作系統(tǒng)。目前并沒有現(xiàn)成的調(diào)試器支持它,因此如果為其開發(fā)一款服務(wù)器端的調(diào)試器,即能夠深入了解acoral內(nèi)核,也能接觸到嵌入式中調(diào)試器設(shè)計的核心技術(shù),具有很強的實踐意義。 本文首先詳細分析了嵌入式調(diào)試器設(shè)計方面的關(guān)鍵技術(shù),包括dwarf調(diào)試信息格式、調(diào)試信息的讀取以及調(diào)試的主要功能,然后結(jié)合acoral的源碼分析了acoral的框架和與調(diào)試相關(guān)的部分,以gdb為基礎(chǔ),設(shè)計并實現(xiàn)了一款針對于acoral的源碼級目標機端調(diào)試器,最后將acoral移植到PB11MPCore多處理器開發(fā)板,通過對acoral中的線程進行調(diào)試,對調(diào)試器的功能進行了測試和驗證。
[Abstract]:With the development and perfection of embedded technology, the embedded system is becoming more and more complex, which greatly increases the possibility of triggering software bug, which highlights the role of debugger in the development of embedded system.As a programmer, the debugger has an irreplaceable role in discovering and eliminating software bug.Different from the traditional single-machine debugging on PC, the embedded system is limited by the software and hardware resources, so the intersecting debugging technology is adopted, that is, the debugger is divided into two parts: the target computer and the host computer.How to use debugging technology to remove bugs in software, improve debugging efficiency and shorten software development time has become an important topic in embedded system development.Acoral is an embedded operating system developed by students. It is open source and has the characteristics of multi-core and strong real-time. It is a promising operating system.At present, there is no ready-made debugger to support it, so it is of great practical significance to develop a server-side debugger for it, not only to understand the acoral kernel in depth, but also to contact with the core technology of debugger design in embedded system.In this paper, the key technologies in the design of embedded debugger are analyzed in detail, including the format of dwarf debugging information, the reading of debugging information and the main functions of debugging. Then, the framework of acoral and the related parts of debugging are analyzed in combination with the source code of acoral.On the basis of gdb, this paper designs and implements a source level target machine debugger for acoral. Finally, the acoral is transplanted to the PB11MPCore multiprocessor development board, and the function of the debugger is tested and verified by debugging the threads in acoral.
【學位授予單位】:電子科技大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP368.1
【參考文獻】
相關(guān)期刊論文 前7條
1 張磊,王學慧;Linux內(nèi)核調(diào)試技術(shù)[J];計算機工程;2003年10期
2 熊光澤,古幼鵬,桑楠;嵌入式應(yīng)用軟件設(shè)計方法學研究綜述[J];計算機應(yīng)用;2004年04期
3 趙香;耿銳;黃光紅;;C語言源碼級調(diào)試器的設(shè)計與實現(xiàn)[J];計算機與現(xiàn)代化;2011年05期
4 奉旭輝;中國嵌入式軟件發(fā)展現(xiàn)狀及趨勢[J];信息技術(shù)與信息化;2005年04期
5 王樹紅;;嵌入式系統(tǒng)的現(xiàn)狀及發(fā)展趨勢[J];太原大學學報;2007年02期
6 李紅衛(wèi),李翠萍,韓紅宇;kgdb調(diào)試Linux內(nèi)核的剖析與改進[J];微型機與應(yīng)用;2004年10期
7 肖紅;周樸雄;;嵌入式多核系統(tǒng)軟件設(shè)計和開發(fā)[J];現(xiàn)代計算機(專業(yè)版);2008年05期
相關(guān)碩士學位論文 前9條
1 申建晶;嵌入式多核實時操作系統(tǒng)研究及實現(xiàn)[D];電子科技大學;2011年
2 曲蕾;基于GDB的嵌入式系統(tǒng)集成開發(fā)環(huán)境的研制[D];太原理工大學;2004年
3 黃紅燕;嵌入式系統(tǒng)調(diào)試技術(shù)的分析與設(shè)計[D];浙江大學;2006年
4 龔偉;基于gdb的嵌入式系統(tǒng)調(diào)試器的設(shè)計與實現(xiàn)[D];電子科技大學;2006年
5 王文杰;基于網(wǎng)絡(luò)的嵌入式調(diào)試器通信方法研究與實現(xiàn)[D];中國海洋大學;2007年
6 梁泉;嵌入式系統(tǒng)交叉調(diào)試器的設(shè)計與實現(xiàn)[D];電子科技大學;2008年
7 游夏;嵌入式多機交叉調(diào)試器的設(shè)計與實現(xiàn)[D];復旦大學;2008年
8 許佳力;嵌入式Linux交叉調(diào)試器設(shè)計與實現(xiàn)技術(shù)研究[D];華中科技大學;2008年
9 彭東脈;基于GDB的雙核調(diào)試器的研究與實現(xiàn)[D];電子科技大學;2010年
本文編號:1712137
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1712137.html