一个可编程C语言图像处理软件中跟踪调试功能的实现
CN431258/ TP 计算机工程与科学 2009 年第 3 1 卷第 3 期
ISSN 1007130X COM PU T ER EN GIN EER IN G & SCIEN CE Vol3 1 ,No3 ,2009
( )
文章编号 :1007130X 2009
一个可编程 C 语言图像处理软件中
跟踪调试功能的实现
A Met ho d of Imp lementing t he Debu gging an d
Tr acin g Technique s in t he Image Proce ssin g
Sof t w ar e Ba sed o n t he C Co mp iler
1 2
台继荣 ,刘吉平
TAI Jirong1 ,L IU Jiping2
( 1. 武汉理工大学外国语学院,湖北 武汉 430070 ;2 . 武汉大学资源与环境学院,湖北 武汉 430070)
( 1. School of Foreign Languages , Wuhan University of Technology , Wuhan 430070 ;
2 . School of Resources and Environmental Science , Wuhan University , Wuhan 430070 , China)
摘 要 :通过在 C 语言编译器产生的汇编代码中增加“软中断”指令和模拟设置断点 , 回避了 Window s 调试 A P I 函数
的局限 ,实现了图像处理软件中编译器的跟踪调试功能 。通过追踪编译器生成的局部变量和全局变量内存分配表 ,实现了
断点追踪过程中的数据实时查询功能 ;通过查找特定的函数头标志 ,实现了 call st ack 功能 。本文所述软件模拟实现了常
用编译器调试功能中的基本功能 。
Abstract :Through adding a“soft int errup t ”in st ruction in t he a smbel co de p roduced by t he C compiler ,and simulating
t he setting of break point s to avoid t he Window s ’limit ation of debugging t he A PI function ,we realize t he dubugging and
t racing function of t he compiler in image p rocessing software . Through t racing t he local variables and global variables mem
ory allocation t able ,we get t he realtime inquiry function of dat a in t racing t he break point s. Through finding t he sp ecific
function head ,we realize t he function of call st ack . The soft ware p resent ed in t he