Methods and apparatus for program debugging using break states
OwnerMichael Boucherinventor
Life of this patent
Estimating the term…
Abstract
Methods and systems consistent with the present invention determine when multiple instances of a single program have reached a common break state, then initiate execution of a comparison of state information associated with the program instances. Thus, the methods and systems allow arbitrarily complex comparisons of indicators that reveal if a program instance is functioning correctly. A programmer is not limited by manual examination and review of program code. Rather, the methods and systems greatly facilitate debugging of complex programs.
Claims45
A method in a data processing system, the method comprising the steps of:
- monitoring a first instance of a program comprising first state information to determine when the first instance of the program reaches a predefined break state;
- waiting for a second instance of the program comprising second state information to reach the predefined break state;
- and
- initiating execution of a state comparison program for comparing the first state information and the second state information to determine whether the first state information agrees with the second state information.
A computer-readable medium containing instructions that cause a data processing system to perform a method comprising the steps of:
- monitoring a first instance of a program comprising first state information to determine when the first instance of the program reaches a predefined break state;
- waiting for a second instance of the program comprising second state information to reach the predefined break state;
- and
- initiating execution of a state comparison program for comparing the first state information and the second state information to determine whether the first state information agrees with the second state information.
A data processing system comprising:
- a memory comprising a program debugger and a first instance of a program comprising first state information, the program debugger for monitoring the first instance to determine when the first instance reaches a predefined break state, waiting for a second instance of the program comprising second state information to reach the predefined break state, and initiating execution of a state comparison program for comparing the first state information and the second state information to determine whether the first state information agrees with the second state information;
- and
- a processor that runs the program debugger.
A data processing system comprising:
- means for monitoring a first instance of a program comprising first state information to determine when the first instance of the program reaches a predefined break state;
- means for waiting for a second instance of the program comprising second state information to reach the predefined break state;
- and
- means for initiating execution of a state comparison program for comparing the first state information and the second state information to determine whether the first state information agrees with the second state information.
A method in a data processing system, the method comprising the steps of:
- initiating execution of a first instance of a program comprising first state information;
- initiating execution of a second instance of the program comprising second state information;
- monitoring the first instance to determine when the first instance reaches a predefined break state, and in response, pausing execution of the first instance;
- monitoring the second instance to determine when the second instance reaches the predefined break state, and in response, pausing execution of the second instance;
- initiating execution of a state comparison program for comparing the first state information and the second state information to determine whether the first state information agrees with the second state information;
- when the first state information agrees with the second state information, setting a new predefined break state and unpausing the first program instance and the second program instance;
- and
- when the first state information disagrees with the second state information, displaying a first error indication.
A method in a data processing system having a first program, a second program and a diagnostic program, the method comprising the steps performed by the diagnostic program of:
- receiving first state information indicating an execution state of the first program;
- receiving second state information indicating an execution state of the second program;
- and
- comparing the first state information and the second state information to determine whether the execution of at least one of the first and the second programs occurred in an unintended manner.
A computer-readable medium containing instructions that cause a data processing system having a first program, a second program and a diagnostic program, to perform a method, the method comprising the steps performed by the diagnostic program of:
- receiving first state information indicating an execution state of the first program;
- receiving second state information indicating an execution state of the second program;
- and
- comparing the first state information and the second state information to determine whether the execution of at least one of the first and the second programs occurred in an unintended manner.
Dependencies are inferred from the claim text.