Debugopt: Debugging Fully Optimized Natively Compiled Programs Using Multistage Instrumentation

Jie Yin,Gang Tan,Hao Li,Xiaolong Bai,Yu-Ping Wang,Shi-Min Hu
DOI: https://doi.org/10.1016/j.scico.2018.09.005
IF: 1.039
2019-01-01
Science of Computer Programming
Abstract:The accuracy of debugging information is crucial for source level debugging. However the debugging information may be inaccurate after sophisticated optimizations if the target program is compiled into native code. Hence, the efficiency of diagnosing software is affected due to inaccurate debugging information. To address the issue, we propose Debugopt, a framework for debugging fully optimized natively compiled programs using multistage instrumentation. At compile time, Debugopt generates unoptimized programs with accurate debugging information and optimized programs. At debugging time, Debugopt dynamically replaces the execution of optimized programs with unoptimized programs. Debugopt is implemented on multiple architectures, including x86-32, x86-64, armv7 and mips3. Debugopt's overhead is small during normal execution on a large range of benchmarks. (C) 2018 Published by Elsevier B.V.
What problem does this paper attempt to address?