News for hackers. Stuff that matters.
Re:Who Is Debugging the Debuggers? Exposing Debug Bugs in Op... by stefan_ on Thursday December 03, 2020 @09:11AM (#25288942)
There is a big disconnect between all the stuff compilers shovel into DWARF information and then what parts of that gdb is actually making active use of or even supports to begin with.

DWARF is the perfect case for why it's often better to just have an intertwined compiler & debugger implementation and information format instead of the current tragedy.

Re:Who Is Debugging the Debuggers? Exposing Debug Bugs in Op... by khuey on Thursday December 03, 2020 @09:45AM (#25289293)
Generally when you see <optimized out> it really is because the compiler didn't emit location entry for that variable at that point in the program. There's plenty of stuff in DWARF that gdb/etc doesn't make a lot of use of but variable locations aren't among them.