发明授权
- 专利标题: Method for simulating back program execution from a traceback sequence
- 专利标题(中): 从回溯序列模拟程序执行的方法
-
申请号: US09474680申请日: 1999-12-29
-
公开(公告)号: US06804814B1公开(公告)日: 2004-10-12
- 发明人: Andrew E. Ayers , Richard Schooler , Anant Agarwal
- 申请人: Andrew E. Ayers , Richard Schooler , Anant Agarwal
- 主分类号: G06F944
- IPC分类号: G06F944
摘要:
A program execution data trace is created by instrumenting a program to record value sets during execution and an instruction trace. By simulating instructions either backward or forward from a first instruction associated with a recorded value set to a second instruction according to the instruction trace, a value set is determined for the second instruction. Backward and forward simulation can be combined to complement each other. For backward simulation, a table of simulation instructions is preferably maintained, which associates program instructions encountered in the instruction trace with simulation instructions which reverse the operation of the of the associated program instructions. Preferably, one or more probes is inserted into the program to save values of particular variables whose value may be difficult to determine. Preferably, the instruction trace is displayed alongside and correlated with the data trace. In one embodiment, the instruction trace is displayed and a value set is determined for an instruction upon a request by the user indicating the instruction for which the value set is desired.
信息查询