×

System for modifying relocatable object code files to monitor accesses to dynamically allocated memory

  • US 5,193,180 A
  • Filed: 06/21/1991
  • Issued: 03/09/1993
  • Est. Priority Date: 06/21/1991
  • Status: Expired due to Term
First Claim
Patent Images

1. A computer implemented method for inserting new instructions between preexisting instructions, a set of said preexisting instructions requiring new instructions, said method comprising the steps of;

  • a) providing in a computer storage medium an old object code table containing said preexisting instructions;

    b) providing in a computer storage medium a set of tables, said tables being for storing items, wherein said items include instructions and data, said items having locations within said tables, said set of tables includingi) a new object code table for storing new code blocks of preexisting instructions and new instructions,ii) an inter-item offset table for storing inter-item offsets, wherein inter-item offsets are referenced from a base and point to a target, and wherein said base and target are items in said old object code table,iii) a forward index table for storing locations of items within said new object code table, andiv) a forward control index table for storing locations of new code blocks within said new object code table;

    c) performing the following computer implemented steps for each item in said old object code table;

    i) storing a new code block into said new object code table, said new code block comprising said each item in said old object code table, and, for items in said set of said preexisting instructions requiring new instructions, said new code block additionally comprising new instructions;

    ii) storing said location within said new object code table of said item in said old object code table into said forward index table;

    iii) storing said location of said new code block within said new object code table into said forward control index table; and

    (iv) indicating, when said each item in said old object code table contains an inter-item offset, said inter-item offset in said inter-item offset table; and

    d) updating each inter-item offset indicated in said inter-item offset table, using said forward control index table for inter-item offsets which are for program control transfer, and using said forward index table for inter-item offsets which are not for program control transfer.

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