发明名称 Integrating compiler warnings into a debug session
摘要 Integrating compiler warnings into a debug session including: receiving, by a debugger for a debug session of a debuggee from a compiler, compiled source code for execution and compiler warning data describing one or more compiler warnings generated at compile time of the debuggee, each compiler warning resulting from a source code variable statement in the debuggee source code; receiving, by the debugger, a request to evaluate a variable; determining, from the compiler warning data, whether evaluating the variable is dependent upon a source code variable statement resulting in a compiler warning; and, if evaluating the variable is dependent upon a source code variable statement resulting in a compiler warning, returning, by the debugger responsive to the request along with a result of the evaluation, a compiler warning indicator.
申请公布号 US9104795(B2) 申请公布日期 2015.08.11
申请号 US201113170754 申请日期 2011.06.28
申请人 International Business Machines Corporation 发明人 Bates Cary L.
分类号 G06F9/44;G06F9/45;G06F11/36 主分类号 G06F9/44
代理机构 Kennedy Lenart Spraggins LLP 代理人 Kennedy Lenart Spraggins LLP
主权项 1. An apparatus for integrating compiler warnings into a debug session, the apparatus comprising a computer processor, a computer memory operatively coupled to the computer processor, the computer memory having disposed within it computer program instructions that, when executed by the computer processor, cause the apparatus to carry out the steps of: generating during compiling one or more compiler warnings, each compiler warning resulting from a source code variable statement; generating a symbol table with a plurality of records, each record representing a variable, the plurality of records including, for each variable having a source code variable statement that resulted in a compiler warning, a compiler warning flag and a warning description; embedding, in the compiled source code of the debuggee at a source code variable statement resulting a compiler warning for a variable, code that, when executed, sets a tag for the variable; embedding, in the compiled source code of the debuggee at a source code variable statement that does not result in a compiler warning for that variable, code that clears the tag for the variable; receiving, by a debugger for a debug session of a debuggee from a compiler, compiled source code for execution and compiler warning data describing one or more compiler warnings generated at compile time of the debuggee, each compiler warning resulting from a source code variable statement in the debuggee source code; executing, by the debugger, the debuggee including setting and clearing tags for variables; upon a stop in execution of the debugee, identifying variables in the present debug scope having in the symbol table the compiler warning flag; receiving, by the debugger, a request to evaluate a variable; and determining, from the compiler warning data, whether evaluating the variable is dependent upon a source code variable statement resulting in a compiler warning; if evaluating the variable is dependent upon a source code variable statement resulting in a compiler warning, returning, by the debugger responsive to the request along with a result of the evaluation, a compiler warning indicator.
地址 Armonk NY US