This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] warning: file name does not match unit name
- From: Andreas Schwab <schwab at suse dot de>
- To: Geert Bosch <bosch at gnat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 14 Nov 2001 15:26:59 +0100
- Subject: Re: [Ada] warning: file name does not match unit name
- References: <Pine.GSO.4.10.10111140851460.2575-100000@nile.gnat.com>
Geert Bosch <bosch@gnat.com> writes:
|> On 14 Nov 2001, Andreas Schwab wrote:
|> That looks pretty much like an off-by-one error. I tried to debug this,
|> but gdb-5.0.92 does not grok DW_FORM_strp and bails out. Where is this
|> file name computed, and how do I do printf-style debugging in Ada?
|>
|> For general Ada programs, one would use Put_Line. Also note that using the
|> GNAT-specific 'Img attribute is useful for outputting integers and floats:
|> Put_Line ("The value of X is " & X'Img & ", and Y is " & Y'Img & ".");
|>
|> For debugging GNAT itself, use the debugging output routines in output.ads,
|> however. These are more convenient and do not depend on a target-specific
|> runtime library.
Thanks, I'll try that out.
Andreas.
--
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5