Invention Grant
US07770155B2 Debugger apparatus and method for indicating time-correlated position of threads in a multi-threaded computer program
失效
用于在多线程计算机程序中指示线程的时间相关位置的调试器装置和方法
- Patent Title: Debugger apparatus and method for indicating time-correlated position of threads in a multi-threaded computer program
- Patent Title (中): 用于在多线程计算机程序中指示线程的时间相关位置的调试器装置和方法
-
Application No.: US11266737Application Date: 2005-11-03
-
Publication No.: US07770155B2Publication Date: 2010-08-03
- Inventor: Cary Lee Bates , John Matthew Santosuosso
- Applicant: Cary Lee Bates , John Matthew Santosuosso
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Martin & Associates, LLC
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
A debugger inserts instrumentation hooks in a multi-threaded computer program that allow collecting a program trace and that provide timestamps that correspond to the program trace. When a breakpoint in a first thread is encountered, a timestamp corresponding to the breakpoint is retrieved. Execution of the other threads may continue until the debugger is able to halt their execution. Once the execution of all threads has been halted, the program trace for each thread is traced backwards to a point where the timestamp is less than the breakpoint timestamp. Instructions are then executed, one by one, until the execution time of the instructions plus the timestamp is approximately the same as the breakpoint timestamp. The instruction in the program trace display is then highlighted to indicate the instruction that was likely being executed when the breakpoint in the first thread is encountered.
Public/Granted literature
Information query