发明名称 Identifying and tagging breakpoint instructions for facilitation of software debug
摘要 A processor stores an address of a first instruction of a first instruction set into a first register. The processor determines that a first instruction set location of the first instruction address matches a breakpoint instruction set location of a breakpoint instruction address stored in a second register, wherein the second register includes a state bit. The processor retrieves the first instruction. The processor determines that a breakpoint instruction offset of the breakpoint instruction address identifies the first instruction as the breakpoint. The processor sets the state bit of the second register. The processor removes the first instruction based on the state bit being set and then re-retrieves the first instruction. The processor tags the first instruction and generates an interrupt based on either the tagged first instruction being next to completion or the tagged first instruction being completed.
申请公布号 US9170920(B2) 申请公布日期 2015.10.27
申请号 US201313850327 申请日期 2013.03.26
申请人 International Business Machines Corporation 发明人 Konigsburg Brian R.;Levitan David S.
分类号 G06F11/00;G06F11/36 主分类号 G06F11/00
代理机构 代理人 Patel Jinesh;Bennett Steven L.
主权项 1. A computer program product for identifying and tagging breakpoint instructions, the computer program product comprising: one or more computer-readable storage devices and program instructions stored on at least one of the one or more tangible storage devices, the program instructions comprising: program instructions to store an address of a first instruction of a first instruction set into a first register, wherein the first instruction address includes a first instruction set location, and a first instruction offset within the first instruction set; program instructions to determine that the first instruction set location matches a breakpoint instruction set location of a breakpoint instruction address stored in a breakpoint register, the breakpoint register including a state bit, and the breakpoint instruction address including the breakpoint instruction set location and a breakpoint instruction offset; program instructions to retrieve the first instruction; program instructions to determine that the breakpoint instruction offset identifies the first instruction as the breakpoint instruction; program instructions to set the state bit of the breakpoint register; program instructions to remove the first instruction based on the state bit of the breakpoint register being set; program instructions to re-retrieve the first instruction; program instructions to tag the first instruction; and program instructions to generate an interrupt based on either the tagged first instruction being next to completion or the tagged first instruction being completed.
地址 Armonk NY US