This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: [Ada] warning: file name does not match unit name


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


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