文档介绍:第 28 卷第 10 期计算机应用研究畅28 畅10
2011 年 10 月 Vol 畅2011No
Application Research puters Oct
USB 设备端驱动的研究及在
GDB 远程调试中的应用倡
况阳, 雷航, 詹瑾瑜
(电子科技大学嵌入式实时计算实验室, 成都 611731)
摘要: 在嵌入式软件开发中,可以通过宿主机( ) 加目标机的方式对嵌入
Linux GDB GNU debugger GDBserver
式软件进行远程调试, 和通过( )协议进行通信,这种方式可以显著提高
GDB GDBserver RSP remote serial protocol
开发效率;目前宿主机和目标机之间支持串口或网口方式建立连接,暂不支持( )接口。介
USB universal serial bus
绍了的相关概念及远程调试原理,通过分析当前存在的调试模型,利用设备端功能驱动
USB GDB Linux Gadget
实现了+ + 的远程调试模型。该模型弥补了现有模型的不足, 接口的日益普及使得该
USB GDB GDBserver USB
模型在实际开发中带来了极大的便利。
关键词: 嵌入式; 通用串行总线驱动; 调试器; ; 远程调试
Linux GDB GDBserver
中图分类号: 311畅56 文献标志码: 文章编号: 1001唱3695(2011)10唱3770唱05
TP A
: /. .
doi j issn
Study of USB device driver and its application in GDB remote debugging
, , 唱
KUANG Yang LEI Hang ZHAN Jin yu
(Laboratory of Embedded puting, University of Electronic Science Technology of China, Chengdu 611731, China)
&
Abstract: ,
During embedded, Linux software development it can do remote debugging, on embedded software by using host唱
GDB. and target GDBserver municate with GDBserver via RSP protocol this method, can improve efficiency effec
host machine and target machine can build connection with serial port or but not support, USB connection唱
so far This paper introduced, some USB related conceptions and the fundamental of GDB+ remote+ debugging