• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2014, Vol. 36 ›› Issue (10): 1854-1859.

• 论文 • 上一篇    下一篇

一种面向通用众核CPU的软件调试器设计

王敬宇,范昊   

  1. (江南计算技术研究所,江苏 无锡 214083)
  • 收稿日期:2014-06-10 修回日期:2014-08-25 出版日期:2014-10-25 发布日期:2014-10-25
  • 基金资助:

    国家863计划资助项目(2012AA010901)

A software debugger for general many-core processors         

WANG Jingyu,FAN Hao   

  1. (Jiangnan Institute of Computing Technology,Wuxi 214083,China)
  • Received:2014-06-10 Revised:2014-08-25 Online:2014-10-25 Published:2014-10-25

摘要:

近年来,众核处理器技术飞速发展,而面向该体系架构的软件调试技术相对滞后。针对众核平台上软件调试的特点,提出了一种一对多的软件调试模型,基于开源调试器gdb,设计了指令移位断点算法。该设计克服了硬件断点数量的限制,提升了异常定位的精确度,改善了软件调试器的易用性。最后通过实例对采用该设计的软件调试器进行了验证。结果表明,该设计能够有效解决众核程序的调试问题,提高软件调试器的执行效率,帮助程序员快速定位软件错误。

关键词: 众核, 调试, 断点移位

Abstract:

Recently, the many-core processor technology has been rapidly developed, but the software debugging for such architecture is underdeveloped. According to the characteristics of software debugging for many-core processors, the debugging model of onetomany mapping is proposed. Using this model, we configure the open source debugger gdb and design a breakpoint algorithm based on displaced instruction. The design overcomes the limitations on hardware breakpoint number, improves the accuracy of abnormal localization and makes the improved gdb more efficiently and effectively on many-core processors. Finally, experiments are carried out by a debugging example, and results show that the debugging model and algorithm are helpful to solve the problem of debugging many-core programs and improve the execution efficiency of software debugger.

Key words: many-core;debug;displaced breakpoint