嵌入式系統(tǒng)的調(diào)試方法研究及調(diào)試器后臺處理模塊設(shè)計(jì)
本文關(guān)鍵詞:嵌入式系統(tǒng)的調(diào)試方法研究及調(diào)試器后臺處理模塊設(shè)計(jì) 出處:《西安電子科技大學(xué)》2012年碩士論文 論文類型:學(xué)位論文
更多相關(guān)文章: 調(diào)試器 Dwarf stab out elf 遠(yuǎn)程調(diào)試 嵌入式
【摘要】:嵌入式調(diào)試器是嵌入式軟件開發(fā)的一個(gè)重要的工具。一個(gè)好的嵌入式調(diào)試器可以大大減少整個(gè)系統(tǒng)的開發(fā)時(shí)間。目前,國內(nèi)對嵌入式調(diào)試器技術(shù)方面的研究很少,,一般調(diào)試器工具都是使用國外的產(chǎn)品,而且價(jià)格比較昂貴。因此深入研究調(diào)試技術(shù)并開發(fā)自己的調(diào)試器具有重要意義。 論文主要對嵌入式系統(tǒng)的調(diào)試技術(shù)進(jìn)行了研究,并設(shè)計(jì)一個(gè)嵌入式系統(tǒng)的調(diào)試器。論文首先分析了Linux下面的可執(zhí)行文件elf和out格式,并對stabs和dwarf調(diào)試信息格式進(jìn)行介紹;其次研究了嵌入式系統(tǒng)的調(diào)試方法,并在此基礎(chǔ)上提出了TSC695F JTAG遠(yuǎn)程調(diào)試器的總體設(shè)計(jì)方案;接著完成了調(diào)試器軟件后臺處理模塊的設(shè)計(jì);最后,針對當(dāng)前調(diào)試器存在的問題,對后臺處理模塊進(jìn)行優(yōu)化,提高了調(diào)試器速度,并對調(diào)試器的后臺處理模塊進(jìn)行了深度測試。 調(diào)試器的后臺處理模塊包括解釋器模塊、調(diào)試信息樹構(gòu)建模塊和文件解析模塊。解釋器模塊實(shí)現(xiàn)了用戶UI與底層通信數(shù)據(jù)的中轉(zhuǎn)、調(diào)試信息提取模塊的調(diào)用以及調(diào)試器中斷點(diǎn)和單步的實(shí)現(xiàn)的功能;調(diào)試信息樹構(gòu)建模塊通過調(diào)用文件解析模塊完成了調(diào)試信息樹的構(gòu)建,并將其存儲到內(nèi)存中,同時(shí)為解釋器模塊提供了查詢調(diào)試信息的接口;文件解析模塊通過分析目標(biāo)機(jī)上的可執(zhí)行文件,獲取可執(zhí)行文件的調(diào)試信息。
[Abstract]:Embedded debugger is an important tool for embedded software development. A good embedded debugger can greatly reduce the development time of the whole system. There is little research on embedded debugger technology in our country, and most of the debugger tools use foreign products. Therefore, it is very important to study debugging technology and develop your own debugger. This paper mainly studies the debugging technology of embedded system, and designs a debugger of embedded system. Firstly, the paper analyzes the elf and out format of executable file under Linux. The format of debugging information of stabs and dwarf is introduced. Secondly, the debugging method of embedded system is studied, and the overall design scheme of TSC695F JTAG remote debugger is put forward. Then, the design of the background processing module of the debugger software is completed. Finally, aiming at the problems existing in the current debugger, the background processing module is optimized, the speed of the debugger is improved, and the background processing module of the debugger is tested in depth. The background processing module of the debugger includes interpreter module, debug information tree building module and file analysis module. The interpreter module realizes the transfer of user UI and underlying communication data. The call of debug information extraction module and the function of breakpoint and one-step realization in debugger; The debug information tree building module completes the debug information tree construction by calling the file parsing module and stores it in memory. At the same time, it provides an interface for the interpreter module to query the debugging information. The file parsing module obtains the debug information of the executable file by analyzing the executable file on the target machine.
【學(xué)位授予單位】:西安電子科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP368.1
【參考文獻(xiàn)】
相關(guān)期刊論文 前1條
1 吳疆,田金蘭,張素琴;面向多目標(biāo)機(jī)的交叉調(diào)試器的研究與設(shè)計(jì)[J];清華大學(xué)學(xué)報(bào)(自然科學(xué)版);2003年01期
相關(guān)碩士學(xué)位論文 前4條
1 劉嵐;嵌入式軟件開發(fā)環(huán)境中遠(yuǎn)程調(diào)試技術(shù)的研究及應(yīng)用[D];西北工業(yè)大學(xué);2004年
2 單開濤;嵌入式遠(yuǎn)程調(diào)試中目標(biāo)機(jī)模塊若干關(guān)鍵技術(shù)的研究與實(shí)現(xiàn)[D];浙江大學(xué);2006年
3 朱梅;基于JTAG標(biāo)準(zhǔn)的通用交叉調(diào)試代理的設(shè)計(jì)和實(shí)現(xiàn)[D];電子科技大學(xué);2007年
4 李寶丹;嵌入式系統(tǒng)輔助調(diào)試環(huán)境的開發(fā)[D];北京郵電大學(xué);2009年
本文編號:1437749
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1437749.html