摘要 |
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. |
主权项 |
1. A computer-implemented method of facilitating debugging of applications, the computer-implemented 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; using the trap to debug the application code; replacing, by the processor, at the selected location, the trap with the prefixed instruction; and based on the replacing, restarting, by the processor, execution of the application code at the prefixed instruction. |