This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Meaning of "Builds libada directory"
- From: Duncan Sands <duncan dot sands at math dot u-psud dot fr>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: Hilfinger at otisco dot mckusick dot com, gdb at sources dot redhat dot com
- Date: Thu, 7 Oct 2004 16:39:14 +0200
- Subject: Re: Meaning of "Builds libada directory"
- References: <200410061940.i96JeCLF003487@tully.CS.Berkeley.EDU> <200410070849.24262.duncan.sands@math.u-psud.fr> <20041007142823.GF1282@gnat.com>
On Thursday 07 October 2004 16:28, Joel Brobecker wrote:
> > > Hmm. Haven't seen this, but then I don't use that compiler. I
> > > shall inquire. Just out of curiosity, if you stop somewhere in Ada
> > > source, what language do you see?
> >
> > minimal:
>
> I think I know why. I am a bit in a rush this morning, so I'll
> let you try the attached patch, see if it makes a difference.
> The key here is that 3.15p uses stabs, while recent GCC versions
> use dwarf2, where the language is set from the DW_LANG value,
> rather than the source extension.
>
> 2004-10-07 Joel Brobecker <brobecker@gnat.com>
>
> * dwarf2read.c (set_cu_language): Set language to Ada for
> DW_LANG_Ada83 and DW_LANG_Ada95.
>
> It is almost obvious, but I want to test it before I submit this
> patch and I can't do it this morning. Do give it a try.
It did the trick - thanks a lot!
All the best,
Duncan.