Loading…
Back To Schedule
Monday, April 8 • 4:15pm - 4:45pm
Improving Debug Information in LLVM to Recover Optimized-out Function Parameters

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Software release products are compiled with optimization level –O2 and higher. Such products might produce a core-file that is used for investigating cause of problem that produced it. First thing from which we start debug analysis is call-trace from a crash. In such traces most of the parameters are reported as optimized out due to variety of reasons. Some of parameters are really optimized out, but some of their locations could be calculated. Expert software developers are able to find what values parameters had at function entry point by using the technique that requires searching those values in disassembly of caller frame at place of that particular function call. Automation of such technique is described by DWARF 5 specifications and it is already implemented in GCC and GDB since 2011. The goal of this paper is to present ideas, implementation and problems that we encountered while we were working on this feature in LLVM. We will also show the improvement by presenting recovered parameters in some of the call-traces. This feature should improve debugging of optimized code built with LLVM by recovering optimized-out function parameters.

Speakers
NP

Nikola Prica

RT-RK/Cisco


Monday April 8, 2019 4:15pm - 4:45pm CEST
Charleston