This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/stabs] 't' type declaration is equivalent to 'Tt' for Ada
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 27 Feb 2007 11:54:04 -0500
- Subject: Re: [RFA/stabs] 't' type declaration is equivalent to 'Tt' for Ada
- References: <20070209225249.GK3372@adacore.com>
On Fri, Feb 09, 2007 at 02:52:49PM -0800, Joel Brobecker wrote:
> The problem is that we only match STRUCT_DOMAIN symbols.
> However, in our case, the actual type was declared:
>
> system__standard_library__exception_data:t22=
>
> This is different from:
>
> system__standard_library__exception_data:Tt22=
>
> When we have a 't', the debugger builds a VAR_DOMAIN symbol. When we
> have a 'T', the debugger also builds a STRUCT_DOMAIN symbol. In Ada,
> there is no equivalent of the distinction between typedef and non-typedef.
> So as a result, I modified the stabsreader such that, for Ada, a 't'
> symbol would be treated as if it was defined with 'Tt'.
I guess this is OK. It seems silly to rely on STRUCT_DOMAIN, but I
don't want to make intrusive changes to this code now - a drawback of
everything moving away from stabs is that it becomes harder to test.
--
Daniel Jacobowitz
CodeSourcery