------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-08-02 17:00 ------- Devang --
The DWARF-2 information looks correct to me, from the section of DWARF-2 code that you posted in the original report for this bug. I know GDB doesn't print the variable, but I don't think that's the compiler's fault; the information looks OK. Is there something wrong with the DWARF-2 generated, or is this just a GDB bug? I'm not oppposed to making the kind of change you're proposing for the C front end; I suggested the same thing. But, it is a complex change; as you've noted, there are regressions when you try it. -- Mark -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23190