IP Library Granted Patent US 9,619,368
Granted Patent B2
US 9,619,368 · App. 14/672,422 · Granted Apr 11, 2017

Method of testing software

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,619,368
App. No.
14/672,422
Granted
Apr 11, 2017
Kind
B2
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.

Claims (49)

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.

2. The method according to claim 1 , wherein evaluating the filtering condition comprises executing the first code, and wherein based upon the evaluation the first code implements a jump to the second code.

3. The method according to claim 2 , further comprising:

restoring at least some registers affected by the first breakpoint.

4. The method according to claim 2 , further comprising:

restoring, by the second code, any remaining registers affected by the first breakpoint.

5. The method according to claim 1 , further comprising:

generating, by the debugger, the second code of the breakpoint handler.

6. The method according to claim 1 , further comprising:

translating, by the debugger, original code replaced with the first breakpoint into the position independent code.

7. The method according to claim 6 , further comprising:

invoking, by the debugger, a disassembler for identifying and, if necessary, changing instructions of the original code.

8. The method according to claim 1 , further comprising:

transferring execution to the breakpoint handler via an interrupt handler, which interrupt handler passes the address of the first breakpoint to the breakpoint handler.

9. The method according to claim 1 , further comprising:

stopping execution of the target application if the filtering condition is met.

10. The method according to claim 1 , further comprising:

entering in the data structure, together with each filtering condition associated with the first breakpoint, an identification of the second code entry.

11. The method according to claim 1 , further comprising:

transferring execution to the breakpoint handler via an interrupt handler.

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.

14. The method according to claim 3 , further comprising:

restoring any remaining registers affected by the first breakpoint.

Assignments (15)
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040925 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Feb 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V. F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 052917/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040928 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Jan 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 052915/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050744/0097 →
CORRECTIVE ASSIGNMENT TO CORRECT THE NATURE OF CONVEYANCE PREVIOUSLY RECORDED AT REEL: 040626 FRAME: 0683. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER AND CHANGE OF NAME EFFECTIVE NOVEMBER 7, 2016. Recorded Jan 12, 2017
From: NXP SEMICONDUCTORS USA, INC. (MERGED INTO); FREESCALE SEMICONDUCTOR, INC. (UNDER)
To: NXP USA, INC.
Reel/Frame 041414/0883 →
CHANGE OF NAME Recorded Nov 16, 2016
From: FREESCALE SEMICONDUCTOR INC.
To: NXP USA, INC.
Reel/Frame 040626/0683 →
RELEASE OF SECURITY INTEREST Recorded Nov 7, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 040928/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 21, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V., F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 040925/0001 →
SUPPLEMENT TO THE SECURITY AGREEMENT Recorded Jun 16, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039138/0001 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 7, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037458/0359 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 7, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037458/0341 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037357/0974 →
SUPPLEMENT TO IP SECURITY AGREEMENT Recorded May 4, 2015
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 035571/0112 →
SUPPLEMENT TO IP SECURITY AGREEMENT Recorded May 4, 2015
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 035571/0095 →
SUPPLEMENT TO IP SECURITY AGREEMENT Recorded May 4, 2015
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 035571/0080 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 30, 2015
From: MILOIU, DRAGOS; GHEORGHE, ALEXANDRU COSMIN; LAZARESCU, RADU THEODOR; NISTOR, MIHAIL-MARIAN
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 035284/0308 →