Debugger apparatus and method for indicating time-correlated position of threads in a multi-threaded computer program
AssigneeInternational Business Machines Corporation
InventorsCary Bates, John Santosuosso
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsCary Bates, John Santosuosso
Estimating the term…
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.
An apparatus comprising:
A computer-implemented method for debugging a computer program that includes first and second threads, the method comprising the steps of:
A computer-implemented method for determining location of executing a second thread at the time an event occurred in a first thread, the method comprising the steps of:
A computer-readable program product comprising:
Dependencies are inferred from the claim text.