×

Debugging program code at instruction level through emulation

  • US 10,445,216 B2
  • Filed: 08/25/2017
  • Issued: 10/15/2019
  • Est. Priority Date: 08/25/2017
  • Status: Active Grant
First Claim
Patent Images

1. A method, implemented at a computer system that includes one or more processors, for debugging executable code, the method comprising:

  • executing the executable code within a target computing environment;

    stopping execution of the executable code within the target computing environment at a current function;

    locating an instruction code segment of the current function wherein the instruction code segment is an epilog of the current function;

    copying a snapshot of the target computing environment to an emulation computing environment, the snapshot including a set of data related to executing the executable code within the target computing environment;

    emulating the instruction code segment within the emulation computing environment while maintaining state of the executable code within the target computing environment;

    after emulating the instruction code segment within the emulation computing environment, retrieving at least one value of a non-volatile register for a caller function of the current function, wherein the instruction code segment modifies the at least one value of the non-volatile register; and

    based on the retrieved at least one value of the non-volatile register for the caller function, emulating one or more executable code instructions of the caller function within the emulation computing environment.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×