发明名称 Debug management using a counter
摘要 Disclosed aspects include identifying basic blocks of a program. For each basic block, the compiler inserts an identifier that includes the function name, and is coupled with a counter variable. In response to generating the identifier coupled with the counter variable, the program is compiled. During program execution, the counter value is incremented in response to a call of the basic block when executing the program. In response to incrementing the counter value, the counter value coupled with the identifier is displayed.
申请公布号 US9619369(B2) 申请公布日期 2017.04.11
申请号 US201514716769 申请日期 2015.05.19
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Bates Cary L.;Helgeson Lee;King Justin K.;Schlicht Michelle A.
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人 Kehe Kevin
主权项 1. A system for debug management, the system comprising: a memory having a set of computer readable computer instructions, and a processor for executing the set of computer readable instructions, the set of computer readable instructions including: identifying a set of basic blocks of a program; generating, by a compiler, a counter coupled with an identifier corresponding to a basic block of the program; compiling, in response to generating the counter coupled with the identifier, the program; initiating execution of the program; calling the basic block, wherein calling the basic block indicates to trigger incrementation of the counter; incrementing the counter; detecting, in response to incrementing the counter, an error event which is detached from the basic block; establishing, to tend to the error event which is detached from the basic block, a breakpoint linked with the basic block corresponding with the identifier coupled with the counter; determining, based on an outer-to-inner criterion, a basic block order for debugging; displaying, in response to incrementing the counter, the counter coupled with the identifier corresponding to the basic block of the program; and displaying, to load a single page having the error event, the basic block in the basic block order.
地址 Armonk NY US