SN Systems Tech Blog

    Improving debug locations for variables in memory

    ARTICLE BY: Orlando Cazalet-Hyams
    POSTED: Jun 07, 2022
    TAGS: LLVM Developers Meeting, Toolchain

    LLVM generates suboptimal debug variable locations for variables in memory in optimised code. We’ve been prototyping a new debug intrinsic which enables LLVM to make smarter decisions for these variables by connecting stores and source assignment markers. In this talk I will briefly outline the problem with the existing system, how the new system works, including how existing passes are affected and discuss the accuracy and coverage improvements we've found so far.

    READ THE WHOLE POST 

    Improving the Optimized Debugging Experience

    ARTICLE BY: Orlando Cazalet-Hyams
    POSTED: Dec 06, 2019
    TAGS: LLVM Developers Meeting, Toolchain

    Sometimes it is impractical to debug unoptimized code (-g -O0). However, the optimized debugging experience (-g -O2) can be frustrating and occasionally misleading. This is not ideal, especially when printf-debugging won't cut it. But it doesn't have to be this way! Over the last year, using DExTer and other tools, we have found many debug-info bugs that occur when compiling with optimizations. Some remain unfixed and there are certainly more to be found. In this talk I'll outline some examples of these bugs, how we found them, and what we're doing to improve the optimized debugging experience.

    READ THE WHOLE POST