Method of testing software
First Claim
Patent Images
1. A method of testing software of a target application using a debugger and a breakpoint handler comprising:
- inserting, by the debugger, a first breakpoint in the target application;
entering, by the debugger, at least one filtering condition associated with the first breakpoint in a data structure;
transferring execution by the target application to the breakpoint handler when during execution the target application encounters the first breakpoint at an address;
retrieving, by the breakpoint handler, a filtering condition from the data structure based upon the address;
evaluating, by the breakpoint handler, the filtering condition to determine if the filtering condition is met, andexecuting, by the breakpoint handler, a first code and a second code if the filtering condition is not met, wherein the first code is breakpoint code of the first breakpoint and a second breakpoint, and the second code is breakpoint code of the first breakpoint and not breakpoint code of the second breakpoint, wherein the second code comprises position independent code and code for jumping back to the target application.
15 Assignments
0 Petitions
Accused Products
Abstract
A method of testing software uses a debugger and a breakpoint handler. The debugger inserts a breakpoint in a target application and enters at least one filtering condition associated with the breakpoint in a data structure. When during execution the target application encounters a breakpoint at an address, the target application transfers execution to the breakpoint handler. The breakpoint handler uses the address to retrieve filtering conditions from the data structure, executes code for evaluating the filtering condition, and transfers execution back to the target application if the filtering condition is not met.
31 Citations
14 Claims
-
1. A method of testing software of a target application using a debugger and a breakpoint handler comprising:
-
inserting, by the debugger, a first breakpoint in the target application; entering, by the debugger, at least one filtering condition associated with the first breakpoint in a data structure; transferring execution by the target application to the breakpoint handler when during execution the target application encounters the first breakpoint at an address; retrieving, by the breakpoint handler, a filtering condition from the data structure based upon the address; evaluating, by the breakpoint handler, the filtering condition to determine if the filtering condition is met, and executing, by the breakpoint handler, a first code and a second code if the filtering condition is not met, wherein the first code is breakpoint code of the first breakpoint and a second breakpoint, and the second code is breakpoint code of the first breakpoint and not breakpoint code of the second breakpoint, wherein the second code comprises position independent code and code for jumping back to the target application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14)
-
-
12. A computer program product, not comprising transitory media, comprising instructions for causing a processor system to perform a method of testing software using a debugger and a breakpoint handler,
the breakpoint handler comprises a first code and a second code, wherein the first code is breakpoint code of a first breakpoint and a second breakpoint, and the second code is breakpoint code of the first breakpoint and not breakpoint code of the second breakpoint, wherein the second code comprises position independent code and code for jumping back to a target application, the debugger instructions of the product are configured for: -
inserting the first breakpoint in the target application, entering at least one filtering condition associated with the first breakpoint in a data structure, and causing, when during execution the target application encounters first breakpoint at a certain address, the target application to transfer execution to the breakpoint handler, and in which product the breakpoint handler instructions are configured for; using the address to retrieve filtering conditions from the data structure, executing code for evaluating the filtering condition, and executing the second code if the filtering condition is not met.
-
-
13. A system for testing software, executing on a processor of a computer system, using a debugger and a breakpoint handler,
wherein the breakpoint handler comprises a first code and a second code, wherein the first code is breakpoint code of a first breakpoint and a second breakpoint and the second code is breakpoint code of the first breakpoint and not breakpoint code of the second breakpoint, wherein the second code comprises position independent code and code for jumping back to a target application, wherein the debugger is configured for: -
inserting the first breakpoint in the target application, entering at least one filtering condition associated with the first breakpoint in a data structure, and causing, when during execution the target application encounters the first breakpoint at an address, the target application transfers execution to the breakpoint handler, and wherein the breakpoint handler is configured for; using the address to retrieve filtering conditions from the data structure, executing code for evaluating the filtering condition, and executing the second code if the filtering condition is not met.
-
Specification