为解决嵌入式L inux内核及驱动程序调试困难、方法单一等问题,运用插桩方案初步实现了一个具有基本调试功能灵活、可移植的插桩模块. 该模块遵循GDB远程串行协议与宿主机调试器GDB进行交互,配合GDB的客户端功能,为嵌入式L inux内核调试提供了一个便捷、廉价的解决方案.关键词:嵌入式L inux; 内核调试技术; 远程调试; GDBAbstract: To solve the p roblem that it is difficult to debug embedded L inux kernel and drivers, this article re2 searches some key points of embedded L inux kernel debugging technology and discusses the feasibility of stub scheme. Finally we accomp lish a stub module which is simp le, flexible and portable. The module communicates with the GDB by using GDB remote serial p rotocol. In coordination with GDB, the module p rovides a convenient and economical solution for debugging embedded Linux kernel and drivers.Key words: embedded L inux; kernel debugging technology; remote debug; GDB