基于事件循環(huán)機制的嵌入式應用級交叉調(diào)試器的研究
發(fā)布時間:2018-08-22 17:55
【摘要】:隨著硬件技術(shù)的發(fā)展,嵌入式應用不斷普及和深化。嵌入式軟件的需求越來越大,復雜性也越來越高。在開發(fā)嵌入式軟件的過程中,,調(diào)試成為了不可或缺的重要階段。嵌入式軟件的調(diào)試時間越來越長,調(diào)試費用也越來越高。日益激烈的市場競爭,導致嵌入式產(chǎn)品的上市時間在某些情況下己經(jīng)比其功能和成本更為關(guān)鍵。因此需要提供方便高效的調(diào)試工具,協(xié)助開發(fā)人員盡可能地找出軟件中的錯誤,以提高系統(tǒng)的可靠性和穩(wěn)定性。嵌入式交叉調(diào)試器是進行嵌入式開發(fā)的關(guān)鍵工具。 本嵌入式交叉調(diào)試系統(tǒng)中調(diào)試器運行在普通桌面操作系統(tǒng)上,被調(diào)試程序和調(diào)試代理同時運行在特定的嵌入式操作系統(tǒng)上,調(diào)試器與調(diào)試代理之間通過遠程串行通信協(xié)議進行通信。宿主機端調(diào)試器負責解析用戶輸入的命令并通過發(fā)送RSP協(xié)議包驅(qū)使調(diào)試代理對目標程序進行相關(guān)操作。首先對系統(tǒng)進行了總體設計。然后對斷點管理、執(zhí)行控制、程序棧幀等模塊進行了詳細設計,圖文并茂地分析了各模塊的實現(xiàn)方法。最后重點分析了基于事件循環(huán)機制的多線程調(diào)試策略,分析了多線程調(diào)試模式并闡述了其具體實現(xiàn)方法。 系統(tǒng)針對mips架構(gòu)的處理器實現(xiàn)了一款嵌入式交叉調(diào)試器。結(jié)合源代碼深入分析了嵌入式交叉調(diào)試系統(tǒng)中各功能模塊的具體實現(xiàn)。通過分別對單線程和多線程程序的調(diào)試,對本系統(tǒng)進行了功能驗證和性能驗證。
[Abstract]:With the development of hardware technology, embedded applications continue to be popularized and deepened. The demand for embedded software is increasing, and the complexity is becoming more and more high. In the process of developing embedded software, debugging has become an indispensable important stage. The debugging time of embedded software is longer and longer, and the debugging cost is higher and higher. The increasingly fierce market competition has led to the launch time of embedded products is more critical than its function and cost in some cases. Therefore, it is necessary to provide convenient and efficient debugging tools to help developers find errors in the software as much as possible in order to improve the reliability and stability of the system. Embedded cross-debugger is a key tool for embedded development. In the embedded cross-debugging system, the debugger runs on the common desktop operating system, the debugged program and the debugging agent run on the specific embedded operating system simultaneously. The debugger communicates with the debug agent via a remote serial communication protocol. The host debugger is responsible for parsing the commands input by the user and sending the RSP protocol packet to drive the debugging agent to perform related operations on the target program. First, the overall design of the system is carried out. Then the breakpoint management, execution control, program stack frame and other modules are designed in detail, and the implementation methods of each module are analyzed graphically. Finally, the multi-thread debugging strategy based on the event loop mechanism is analyzed, and the multi-thread debugging mode is analyzed and its implementation method is described. The system implements an embedded cross-debugger for the processor of mips architecture. Combined with the source code in-depth analysis of the embedded cross-debugging system in the specific implementation of functional modules. By debugging single thread and multi-thread program, the function and performance of the system are verified.
【學位授予單位】:華中科技大學
【學位級別】:碩士
【學位授予年份】:2013
【分類號】:TP368.1
本文編號:2197868
[Abstract]:With the development of hardware technology, embedded applications continue to be popularized and deepened. The demand for embedded software is increasing, and the complexity is becoming more and more high. In the process of developing embedded software, debugging has become an indispensable important stage. The debugging time of embedded software is longer and longer, and the debugging cost is higher and higher. The increasingly fierce market competition has led to the launch time of embedded products is more critical than its function and cost in some cases. Therefore, it is necessary to provide convenient and efficient debugging tools to help developers find errors in the software as much as possible in order to improve the reliability and stability of the system. Embedded cross-debugger is a key tool for embedded development. In the embedded cross-debugging system, the debugger runs on the common desktop operating system, the debugged program and the debugging agent run on the specific embedded operating system simultaneously. The debugger communicates with the debug agent via a remote serial communication protocol. The host debugger is responsible for parsing the commands input by the user and sending the RSP protocol packet to drive the debugging agent to perform related operations on the target program. First, the overall design of the system is carried out. Then the breakpoint management, execution control, program stack frame and other modules are designed in detail, and the implementation methods of each module are analyzed graphically. Finally, the multi-thread debugging strategy based on the event loop mechanism is analyzed, and the multi-thread debugging mode is analyzed and its implementation method is described. The system implements an embedded cross-debugger for the processor of mips architecture. Combined with the source code in-depth analysis of the embedded cross-debugging system in the specific implementation of functional modules. By debugging single thread and multi-thread program, the function and performance of the system are verified.
【學位授予單位】:華中科技大學
【學位級別】:碩士
【學位授予年份】:2013
【分類號】:TP368.1
【參考文獻】
相關(guān)期刊論文 前10條
1 夏瑋瑋,沈連豐,肖婕,毛宇斌;嵌入式系統(tǒng)關(guān)鍵技術(shù)分析與開發(fā)應用[J];單片機與嵌入式系統(tǒng)應用;2003年02期
2 喬容,彭思鵬,柏桂枝;嵌入式軟件源碼級交叉調(diào)試器的設計與實現(xiàn)[J];艦船電子工程;2004年03期
3 張棟嶺,劉獻科,鄧曉艷,朱培彥,陳涵生;嵌入式應用的遠程調(diào)試[J];計算機工程;2003年11期
4 龔偉;;GDB事件機制的深入分析[J];計算機與數(shù)字工程;2007年07期
5 涂剛,陽富民,胡貫榮;嵌入式操作系統(tǒng)綜述[J];計算機應用研究;2000年11期
6 曾杰,蔣澤軍,王麗芳,張彥明;嵌入式遠程調(diào)試器的設計與實現(xiàn)[J];計算機測量與控制;2005年07期
7 郭慎平;閆志貴;;Java多線程技術(shù)在嵌入式調(diào)試工具開發(fā)中的研究及應用[J];軟件導刊;2008年10期
8 陳必泉,黃承慧;GDBSERVER原理分析及其應用[J];計算機工程與設計;2005年03期
9 周紅波;;嵌入式系統(tǒng)軟件開發(fā)環(huán)境中調(diào)試器的設計[J];微計算機信息;2006年14期
10 金輝;華斯亮;張鐵軍;侯朝煥;;基于JTAG標準的處理器片上調(diào)試的分析和實現(xiàn)[J];微電子學與計算機;2007年06期
本文編號:2197868
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2197868.html
最近更新
教材專著