摘要
针对快速仿真器(quickemulator,QEMU)虚拟机支持的终端调试存在交互性差和可视性不足等问题,设计了一种可扩展、操作简便的远程调试器.首先,基于远程串行调试通信协议(remote serialprotocol,RSP)拓展了QEMU虚拟机的调试接口.进而,构建了GUN调试器机器接口(GUN debuggermachineinterface,GDB/MI)数据传输通道传递调试信息,在此基础上,通过提取、解析及重组调试信息更新变量信息和调试状态.最终,设计了可视化界面实现源码查看、指令发送、信息显示与调试追踪.实际应用表明:该远程调试器能够满足基础的调试需求,并且设计的可视化界面使得调试过程更为简洁直观.
To solve the problems of poor interaction and insufficient visibility in the terminal debugging supported by quick emulator(QEMU)virtual machines,a scalable and easy-to-operate remote debugger was designed.Firstly,the debugging interface of the QEMU virtual machine was extended based on the remote serial protocol(RSP).Furthermore,a GUN debugger machine interface(GDB/MI)data transmission channel was constructed to transmit debugging information,and on this basis,the variable information and debugging states were updated by extracting,parsing and reorganizing the debugging information.Finally,the visual interface was designed to realize source code viewing,instruction sending,information displaying and trace debugging.The practical application shows that the remote debugger can meet the basic debugging requirements,and the designed visual interface makes the debugging process more concise and intuitive.
作者
陈芳
李耀
宋雷军
申臻
胡逸琳
CHEN Fang;LI Yao;SONG Leijun;SHEN Zhen;HU Yilin(Shanghai Institute of Aerospace Computer Technology,Shanghai 20109,China)
出处
《先进小卫星技术(中英文)》
2024年第2期87-94,共8页
Advanced Small Satellite Technology
关键词
QEMU虚拟机
调试器
远程通信
数据解析
集成开发环境
QEMU virtual machine
debugger
remote communication
data parsing
integrated development environment