Debugging of prefixed code
AssigneeInternational Business Machines Corporation
InventorMichael K. Gschwind
Life of this patent
Estimating the term…
Abstract
A debugging capability that enables the efficient debugging of code that has prefixes, referred to herein as prefixed code. To debug application code, in which the application code includes a prefixed instruction to be modified by a prefix, a trap is provided. The trap is configured to report a presence of the prefix, but to otherwise perform the trap functions absent the prefix; i.e., the prefix is otherwise ignored in the processing of the trap.
Claims20
A computer program product for facilitating debugging of applications, the computer program product comprising:
- a non-transitory computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising:
- providing, by one or more processors, a trap to be used in debugging of application code, the application code including a prefixed instruction, and the trap to replace the prefixed instruction by placing the trap at a selected location in the application code, wherein the selected location includes over the prefixed instruction, the trap configured to ignore the prefix in execution;
- executing, by the one or more processors, the application code, wherein the executing comprises ignoring that the trap is preceded by a prefix instruction and halting the executing at the trap and transferring control to a debug control;
- and
- based on the transferring, performing processing related debugging of the application code.
The computer program product of 1, wherein the prefixed instruction is defined to be modified by a prefix.
The computer program product of 1, wherein the trap is further configured to report a presence of the prefix.
A computer system for facilitating debugging of applications, the computer system comprising:
- a memory;
- and
- one or more processors in communication with the memory, wherein the computer system is configured to perform a method, said method comprising:
- providing, by the one or more processors, a trap to be used in debugging of application code, the application code including a prefixed instruction, and the trap to replace the prefixed instruction by placing the trap at a selected location in the application code, wherein the selected location includes over the prefixed instruction, the trap configured to ignore the prefix in execution;
- executing, by the one or more processors, the application code, wherein the executing comprises ignoring that the trap is preceded by a prefix instruction and halting the executing at the trap and transferring control to a debug control;
- and
- based on the transferring, performing processing related debugging of the application code.
Dependencies are inferred from the claim text.