您现在正在浏览:首页 > 论文 > 计算机 > 硕士论文-嵌入式系统可逆调试器的设计与实现

免费下载硕士论文-嵌入式系统可逆调试器的设计与实现

  • 资源类别:论文
  • 资源分类:计算机
  • 适用专业:计算机软件与理论
  • 适用年级:大学
  • 上传用户:marcsz
  • 文件格式:nh
  • 文件大小:3.59MB
  • 上传时间:2012-4-22 23:57:31
  • 下载次数:0
  • 浏览次数:3

安全检测:瑞星:安全 诺顿:安全 卡巴:安全

资料简介
硕士论文-嵌入式系统可逆调试器的设计与实现,正文共77页。
【摘要】 随着嵌入式系统复杂程度的不断提高,调试越来越被嵌入式系统开发人员所重视。对于诸如嵌入式操作系统和并发程序等具有不确定性的程序,传统的循环调试是不够的。可逆调试可以很好的解决由于程序的不确定性所带来的很多问题。基于记录与重放的逆向执行技术可以使得程序员通过记录下来的程序执行轨迹回滚到程序的任意点,并重演这一执行过程。这样程序员就可以快速的定位错误的根源,避免了反复重启调试会话的麻烦,同时还可以准确的重放错误的场景。基于开源的模拟器QEMU和通用调试器GDB,本文设计实现了可逆调试器PORD。PORD为嵌入式系统提供了一个高效的交叉可逆调试工具。它可以在通用的X86宿主架构上调试目标架构为ARM,SPARC,PPC或者MIPS的嵌入式系统。程序的执行状态主要包括寄存器状态和内存状态。对于寄存器状态的保存,PORD针对不同的目标架构采用不同的保存方法。而对于内存状态的保存,PORD对于不同的目标架构采用了统一的记录方法。为了减少记录执行轨迹所需要的时间与空间开销,检查点可以采用不同的记录粒度。同时PORD为X86目标架构实现了一个接近于本地执行速度的高效可逆调试器。PORD主要有两部分组成。一个是通过修改QEMU而实现记录与重放功能的虚拟机。另一部分是RGDB。RGDB通过在通用调试器GDB中扩充逆向执行命令而实现。RGDB解析用户命令,并且构建发送调试命令数据包到GDB调试桩。存在于虚拟机端的GDB调试桩解析收到的数据包,之后控制虚拟机执行相应的调试命令。实验表明可逆调试器PORD能够快速高效的重演程序的历史状态。对于调试而言,PORD记录日志的时间与空间开销是可以接受的。
【Abstract】 With the increasing complexity of embedded systems, debugging gains more and more importance and attention from the embedded systems developers. Traditional cyclic debugging is insufficient to debug the non-deterministic systems, such as embeded operating systems, parallel programs. Reversible debugging can address those problems associated with debugging non-deterministic systems. Logging and replaying based reverse execution allows a programmer to navigate backward through the execution history and replay the historic execution path. So the programmer can locate the cause of the failure soon, avoid repeated cyclic debugging and can replay the failure scenario exactly.Based on the open source simulator QEMU and debugger GDB, this paper designs and implementes a reversible debugger referred to as PORD, which provides a cross-platform reversible debugger for embedded systems. It enables the embedded systems in ARM, SPARC, PPC or MIPS instruction set architectures to be debugged on a general-purpose X86 host architecture. Program state mainly consists of registers state and memory state. To the registers state recording, PORD uses different methods for different target architectures. However, this paper uses a unified method to record the memory state for different target architectures. In order to reduce time and space overheads for logging execution trace, checkpoints can be recorded at different levels of granularity. PORD also implements an efficient reversible debugger for X86 target architecture, which enjoys a near native speed.PORD mainly includes two components. One is virtual machine achieving logging and replaying capacity by modifying QEMU. The other one is RGDB realized by integrating reverse execution commands into the general-purpose debugger GDB. RGDB interprets the user commands and sends the command packages to the GDB-Stub via Remote Serial Protocol. GDB-Stub in the virtual machine side is responsible for interpreting the debugging command packages and controlling the virtual machine to execute corresponding actions.The evaluation shows that PORD can replay program’s historic execution path fast and efficiently. The space and time overheads needed to support reverse execution are reasonable for debugging.
【关键词】 嵌入式系统; 虚拟机; 可逆调试; QEMU;
【Key words】 embedded systems; virtual machine; reversible debugging; QEMU;
资料文件预览
共1文件夹,1个文件,文件总大小:4.15MB,压缩后大小:3.59MB
  • 硕士论文-嵌入式系统可逆调试器的设计与实现
    • nh嵌入式系统可逆调试器的设计与实现.nh  [4.15MB]
下载地址
资料评论
注意事项
下载FAQ:
Q: 为什么我下载的文件打不开?
A: 本站所有资源如无特殊说明,解压密码都是www.xuehai.net,如果无法解压,请下载最新的WinRAR软件。
Q: 我的学海币不多了,如何获取学海币?
A: 上传优质资源可以获取学海币,详细见学海币规则
Q: 为什么我下载不了,但学海币却被扣了?
A: 由于下载人数众多,下载服务器做了并发的限制。请稍后再试,48小时内多次下载不会重复扣学海币。
下载本文件意味着您已经同意遵守以下协议
1. 文件的所有权益归上传用户所有。
2. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
3. 学海网仅提供交流平台,并不能对任何下载内容负责。
4. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
5. 本站不保证提供的下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
返回顶部