×

Relocatable instrumentation tags for testing and debugging a computer program

  • US 6,106,571 A
  • Filed: 01/29/1998
  • Issued: 08/22/2000
  • Est. Priority Date: 01/29/1998
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method in a computer system for instrumenting a computer program having a plurality of source code modules, the method comprising:

  • for each source code module,generating a base variable having a name that is unique to the source code module;

    for each instrumentation point in the source code module,generating an offset value that is unique within the source code module to the instrumentation point; and

    inserting a tagging assignment statement at the instrumentation point, the tagging assignment statement for setting a tagging variable to a combination of the generated offset value and a value of the base variable; and

    compiling the instrumented source code module;

    for each generated base variable, generating a source code statement that sets the base variable to a unique value such that combination of a generated offset value and of a value of base variable uniquely identifies each instrumentation point and the unique value of the tagging variable at each instrumentation point avoids a predetermined range of values;

    compiling the generated source code statements; and

    linking the compiled instrumented source code modules with the compiled generated source code statements to form a linked program so that during execution of the linked program the tagging variable is set to a unique value at each instrumentation point.

View all claims
  • 8 Assignments
Timeline View
Assignment View
    ×
    ×