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.
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.