This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/stabs] 't' type declaration is equivalent to 'Tt' for Ada


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]