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.
Claims11
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 a processor, a trap to be used in debugging of application code, the application code including a prefixed instruction defined to be modified by a prefix, 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 report a presence of the prefix and to ignore the prefix in execution;
- executing, by the processor, 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;
- restarting, by the processor, execution of the application code at the prefixed instruction, wherein the restarting comprises:
- replacing, by the processor, the trap with the prefixed instruction;
- and
- resuming execution of the application code at the prefixed instruction.
A computer system for facilitating debugging of applications, the computer system comprising:
- a memory;
- and
- a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising:
- providing, by the processor, a trap to be used in debugging of application code, the application code including a prefixed instruction defined to be modified by a prefix, 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 report a presence of the prefix and to ignore the prefix in execution;
- executing, by the processor, 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;
- restarting, by the processor, execution of the application code at the prefixed instruction, wherein the restarting comprises:
- replacing, by the processor, the trap with the prefixed instruction;
- resuming execution of the application code at the prefixed instruction.
Dependencies are inferred from the claim text.