Design and Implementation of Task-level Debugger Based on Embedded Linux
- Author
- GuanShangYuan
- Advisor
- YangYongTian
- School
- Harbin Engineering University
- Major
- Applied Computer Technology
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 210
- Citations
- 1
Abstract
Embedded equipment is a kind of mainstream product during digital age. Embedded software is the core of digital products, but embedded OS and development tool are the base of embedded software. In the development process of embedded system, object software needs to be debugged by means of cross-debugging. Nowadays embedded applications tend to be more complicated and most of them provide OS support and adopt multi-task programming. All above require cross-debugger that can provide special task-level debugging support. The task-level debugging system adopts cross-debugging mode, which means both of the debugger for host, ZGDB, and the debug agent for target, TDAgent, support task-level debugging feature. The former sends debugging commands and receives the execution results, and the latter receives debugging commands and executes them.Firstly, this thesis describes the debugger’s principle and analyses thoroughly Insight which graphs GDB(GNU’s Debugger) so that readers can understand debugger holistically. Secondly, Insight will be changed and enhanced so that it can support dynamic-download and remote create-inferior. At the same time, graphical interfaces are perfected in order to users use it conveniently.Cross-debugging includes system-debugger and task-debugger. But task-debugger is the stress of this thesis. First, the thesis depicts the concept and working flow of both system-debugger and task-debugger .The task-debugging agent is the key of the whole debugging system. It runs as a task, which is supported by OS. In succession, we design and implement the task-debugging agent, TDAgent. It completes basic debugging functions, which includes: creating inferior, attaching/detaching inferior, killing inferior, single step, continue, reading or writing memory, reading or writing registers, restarting and so on. Except for primary functions, the new features that include task-identify, running-control and others are added. The system adopts module and hiberarchy design, and haspowerful functions, real time features, portability, and is easy-clipped which meets the requirements of different users.At present, Tornado is a very popular embedded development tool. According to test, ZGDB arrives at eighty percent Tornado’s performance. ZGDB is being used inside ZTE corporation presently and wins good feedback. At one time, it reduces the cost of development for embedded application by a long way.
Table of contents
Chapter 1 Introduction 11-16
1.1 dissertation research background 11-14
1.1.1 embedded software development and debugging importance 11
1.1.2 dynamic embedded software debug and abroad 11-14
1.2 topics sources 14
1.3 the main contents and chapters arranged 14-16
Insight Chapter 2 analysis and Improvement 16-35
2.1 debugger theories 16-20
2.1.1 debugger Overview 16
2.1.2 ELF file format 16-17
2.1.3 debugging information indicates 17 -19
2.1.4 debug information extraction and processing 19-20
2.2 Insight structural analysis 20-25
2.2.1 Insight hierarchy 21-22
2.2.2 Insight module structure 22-25
2.3 problems 25
2. 4 debug problems 25-26
2.4.1 TCL Profile 25-26
2.4.2 TCL and C separately debugging 26 < br /> 2.5 dynamically downloaded 26-31
2.5.1 dynamic download 26
2.5.2 features the main design ideas 26 -30
2.5.3 functionally related data structures 30-31
2.5.4 function Interface function 31
2.6 remote creation process 31-32
2.6.1 remote thread creation function 31
2.6.2 features the main design ideas 31-32
2 .6.3 functionally related data structures 32
2.6.4 function Interface function 32
2.7 graphical interface 32-34
2.8 Chapter Summary 34-35
Chapter 3, task-level debug agent overall design 35-44
3.1 debug agent system architecture introduced 35 -38
3.1.1 system-level debugging system architecture 35-36
3.1.2 task-level debugging of system architecture 36-38
3.2 task -level debug agent and the relationship between modular sub 38-40
3.3 ptrace system call 40-43
3.3.1 ptrace system call the format 41
3.3.2 ptrace system call function introduction 41-43
3.4 Summary 43-44
4 Chapter realization of task-level debug agent 44-63
4.1 communication module design and implementation 44-47
4.1.1 module Function 44
4.1.2 module design 44-46
4.1.3 module's internal data structures 46
4.1.4 module interface function 46-47
4.2 control module design and implementation 47-48
4.2.1 module Function 47
4. 2.2 module design 47-48
4.2.3 module's internal data structures 48
4.2.4 module interface function 48 < br /> 4.3 operating system dependent module design and implementation 48-52
4.3.1 module Function 48-49
4 3.2 module design thought 49
4.3.3 module internal data structures 49-51
4.3.4 module interface function 51-52
4 .4 thread management module design and implementation 52-55
4.4.1 module Function 52
4.4.2 module design 52 -53
4.4.3 module's internal data structures 53-55
4.4.4 module interface function 55
4.5 breakpoint management Module design and Implementation 55-58
4.5.1 module Function 55
4.5.2 module design 55-57 <br / > 4.5.3 module's internal data structures 57
4.5.4 module interface function 57-58
4.6 initialization module design and implementation 58-59
4.6.1 module Function 58
4.6.2 module design 58
4.6.3 module internal data structure 58
4.6.4 module interface function 58-59
4.7 registers related modules 59-61
4.7. a module function 59
4.7.2 module design 59
4.7.3 module's internal data structures 59-60
4.7.4 module interface function 60-61
4.8 system performance evaluation 61-62
4.8.1 operation and development Environment 61
4.8.2 testing requirements 61
4.8.3 test Results 61
4.8.4 testing and evaluation 61-62
4.9 chapter Summary 62-63
Conclusion 63-64
References 64-67
published during the master's degree papers and research achievements 67-68
Thanks 68
Related dissertations
- Design and realization of real-time Linux operating system debugger
- The Research and Design of the Debugger Basing on ACoral Operating System
- Research on storage system of multi-core processor hierarchy
- Research on Embedded Application Based Fingerprint Verification Technology
- The Design and Research of Embedded Application Control System of Speed Chain of Production Line in Papermaking Industry Based on Configuration Software
- Research and Implementation of Embedded Linux Kerenel Debugging Techonology
- Research and implementation of cross-compilation and cross- debugging tool
- Design and Implementation of the globalization of embedded applications - real-time task management system
- Designation and Implementation of Wireless Intelligent Video Surveillance System Based on ARM
- Research of Face Recognition System Based on Embedded Linux