| US 7,581,209 B2 | ||
| Method for determining code coverage | ||
| Wedson Almeida Filho, Bellevue, Wash. (US) | ||
| Assigned to Microsoft Corporation, Redmond, Wash. (US) | ||
| Filed on Feb. 28, 2005, as Appl. No. 11/69,148. | ||
| Prior Publication US 2006/0195724 A1, Aug. 31, 2006 | ||
| Int. Cl. G06F 9/44 (2006.01) | ||
| U.S. Cl. 717—129 [717/127; 714/35] | 20 Claims |

| 1. A method for determining an amount of code executed in a software module, the method comprising:
enumerating the software module by identifying a plurality of lines of code therein and for each line of code among the plurality
of lines of code, generating a baseless address, the baseless address being an address said line of code would reside at if
the software module was loaded into a memory beginning at address zero;
loading the software module;
replacing at least a portion of an instruction in each of the plurality of lines of code with a breakpoint;
detecting an attempt to execute at least one of the plurality of lines of code; and
identifying the one line of code as being hit.
|