This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING*4] add support for dwarf AT_GNU_descriptive_type
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Michael Eager <eager at eagerm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Olivier Hainque <hainque at adacore dot com>, Jason Merrill <jason at redhat dot com>, brobecker at adacore dot com, guitton at adacore dot com
- Date: Tue, 9 Nov 2010 20:03:41 +0100
- Subject: Re: [PING*4] add support for dwarf AT_GNU_descriptive_type
- References: <20100902143849.GA23684@cardhu.act-europe.fr> <20101109111913.GA13135@cardhu.act-europe.fr> <4CD98181.8040606@eagerm.com>
> I would like to see how 'b' is currently described in DWARF
> and how you would propose changing it, so that I have a better
> understanding of why a debugger cannot print 'b' in detail.
The encoding of debug info generated by GNAT is entirely specified in the file
src/gcc/ada/exp_dbug.ads. It's quite complex but the main idea is that, when
common[*] features of the debug info format aren't sufficient, the compiler
emits additional types that convey the missing info using some encoding; GDB
then does the decoding.
[*] we still support STABS so the encoding is mostly STABS/DWARF-agnostic.
--
Eric Botcazou