Managing breakpoints in a multi-threaded environment
AssigneeInternational Business Machines Corporation
InventorsCary Lee Bates, Paul W. Buenger, Steven Gene Halverson
Life of this patent
Estimating the term…
Abstract
An electronic device is provided that, in an embodiment, saves a plurality of values for a variable specified by a condition after a respective plurality of encounters of a breakpoint by a program that modifies the variable. One of the plurality of values is selected based on a condition. A determination is made whether to stop execution of the program at the breakpoint based on the one of the plurality of the values. Execution of the program is stopped at the breakpoint if the determining is true. The program is allowed to continue to execute if the determining is false.
Claims20
An electronic device comprising:
- a processor;
- and
- a non-transitory storage device connected to the processor, wherein the storage device is encoded with instructions, and wherein the instructions when executed on the processor comprise:
- saving a plurality of values for a variable specified by a condition after a respective plurality of encounters of a breakpoint by a program that modifies the variable,
- selecting one of the plurality of values based on a condition,
- determining whether to stop execution of the program at the breakpoint based on the one of the plurality of the values,
- stopping execution of the program at the breakpoint if the determining is true, and
- allowing the program to continue to execute if the determining is false.
An electronic device comprising:
- a processor;
- and
- a non-transitory storage device connected to the processor, wherein the storage device is encoded with instructions, and wherein the instructions when executed on the processor comprise:
- determining whether a plurality of old conditions exist for a plurality of respective breakpoints in a breakpoint group,
- applying a new condition to each of the plurality of breakpoints if the each of the plurality of old conditions exits,
- saving a plurality of values for a variable specified by the new condition after a respective plurality of encounters of one of the plurality of breakpoints by a program that modifies the variable,
- selecting one of the plurality of values based on the new condition,
- determining whether to stop execution of the program at the one of the plurality of breakpoints based on the one of the plurality of the values,
- if the determining is true, stopping execution of the program at the one of the plurality of breakpoints, and
- if the determining is false, allowing the program to continue to execute.
An electronic device comprising:
- a processor;
- and
- a non-transitory storage device connected to the processor, wherein the storage device is encoded with instructions, wherein the instructions when executed by the processor comprise:
- saving a plurality of values for a variable specified by a condition after a respective plurality of encounters of a breakpoint by a program that modifies the variable,
- selecting one of the plurality of values based on the condition,
- deciding whether to allow the program to continue executing at the breakpoint based on the one of the plurality of the values and based on a thread of the program associated with the breakpoint,
- stopping execution of the program at the breakpoint if the deciding is false, and
- allowing the program to continue to execute if the deciding is true.
Dependencies are inferred from the claim text.