Back to results
US 7,607,123 B2Granted
Systems and methods for validating debug information for optimized code
AssigneeHewlett-Packard Development Company, L.P.
InventorShasank Kisan Chavan
Life of this patent
Estimating the term…
Abstract
An apparatus generates a debugger script to output first data corresponding to a symbol name for a breakpoint in a software program compiled as optimized code. A debugger script to output second data corresponding to the symbol name for the breakpoint in the software program compiled as unoptimized code is also generated. The apparatus further compares the first data to the second data, and indicates whether there is a difference between the first data and the second data.
Claims20
An apparatus comprising:
- logic instructions embedded on computer readable medium operable to cause a computer processor to:
- generate and execute a debugger script to output first data corresponding to a symbol name for at least one breakpoint in a software program compiled as optimized code;
- generate and execute a debugger script to output second data corresponding to the symbol name for the at least one breakpoint in the software program compiled as unoptimized code;
- compare the first data to the second data;
- and
- indicate whether there is a difference between the first data and the second data.
3 more elements
A computer-implemented method comprising:
- determining breakpoints for a software program compiled as optimized code;
- determining breakpoints for the software program compiled as unoptimized code;
- generating a debugger script that includes breakpoints for the optimized object code and the unoptimized object code, and a command to output the value of at least one symbol name at each breakpoint;
- executing the debugger script for the optimized code and output the value of the at least one symbol name to a first file;
- executing the debugger script for the unoptimized code and output the value of the at least one symbol name to a second file;
- outputting first data corresponding to a symbol name for at least one breakpoint in the optimized code;
- outputting second data corresponding to the symbol name for the at least one breakpoint in the unoptimized code;
- comparing the first data to the second data;
- and
- indicating whether there is a difference between the first data and the second data.
7 more elements
A system comprising:
- logic instructions embedded on computer readable medium operable to cause a computer processor to:
- invoke a compiler with a symbolic debug option enabled, and with and without an optimization option enabled, the compiler generates optimized object code and unoptimized object code;
- generate a debugger script that includes breakpoints for the optimized object code and the unoptimized object code, and a command to output the value of at least one symbol name at each breakpoint;
- execute the debugger script for the optimized code and output the value of the at least one symbol name to a first file;
- execute the debugger script for the unoptimized code and output the value of the at least one symbol name to a second file;
- compare the values for the at least one symbol in the first file and the second file;
- and
- indicate whether there is a difference between the values for the at least one symbol name in the first and second files.
5 more elements
Dependencies are inferred from the claim text.