A new framework for debugging globally optimized code

Citation
Lc. Wu et al., A new framework for debugging globally optimized code, ACM SIGPL N, 34(5), 1999, pp. 181-191
Citations number
18
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
34
Issue
5
Year of publication
1999
Pages
181 - 191
Database
ISI
SICI code
1523-2867(199905)34:5<181:ANFFDG>2.0.ZU;2-#
Abstract
With an increasing number of executable binaries generated by optimizing co mpilers today, providing a clear and correct source-level debugger for prog rammers to debug optimized code has become a necessity. In this paper, a ne w framework for debugging globally optimized code is proposed. This framewo rk consists of a new code location mapping scheme, a data location tracking scheme, and an emulation-based forward recovery model. By taking over the control early and emulating instructions selectively, the debugger can pres erve and gather the required program state for the recovery of expected var iable values at source breakpoints. The framework has been prototyped in th e IMPACT compiler and GDB-4.16. Preliminary experiments conducted on severa l SPEC95 integer programs have yielded encouraging results. The extra time needed for the debugger to calculate the limits of the emulated region and to emulate instructions is hardly noticeable, while the increase in executa ble file size due to the extra debug information is on average 76% of that of the executable file with no debug information.