comp.lang.ada
 help / color / mirror / Atom feed
From: srouse@iastate.edu (srouse)
Subject: Re: what are the created ~b files when using -g with gnatmake
Date: 16 Jul 2003 15:04:44 -0700
Date: 2003-07-16T22:04:45+00:00	[thread overview]
Message-ID: <baac6198.0307161404.6bd6342d@posting.google.com> (raw)
In-Reply-To: mailman.12.1058377576.24167.comp.lang.ada@ada.eu.org

Thank you for your help!

Sorry about the "~b" typo!

I have a couple more questions though...

I'm creating an IDE for Ada in Eclipse and working on the debugger
right now, so I'm trying to get a knowledge of how to debug Ada
programs.  All my code is programmed in Java so I'm very familiar with
how to debug Java programs.  With a Java program I step through the
code that I have written.

This is what I don't understand:

If I have a project in GPS and go to debug it, I step through the
created b~xxx.adb file.  Why would I not step through the xxx.adb
file?

I have been looking through the gnat user guide and gnatgdb debugger
doc a great deal, but I still don't understand why the debugger steps
through the b~xxx.adb file and not the xxx.adb file.

Thank you for any additional help!
Shawn



"David C. Hoos" <david.c.hoos.sr@ada95.com> wrote in message news:<mailman.12.1058377576.24167.comp.lang.ada@ada.eu.org>...
> ----- Original Message ----- 
> From: "srouse" <srouse@iastate.edu>
> Newsgroups: comp.lang.ada
> To: <comp.lang.ada@ada.eu.org>
> Sent: Wednesday, July 16, 2003 10:59 AM
> Subject: what are the created ~b files when using -g with gnatmake
> 
> 
> > when I do a gnatmake with the -g option for debugging it creates new
> > ~b*.adb, ~b*.ads, ~b*.ali, and ~b*.o files.  I was wondering what
> > these files are and how they are used when debugging the ada program?
> 
> First, let me say that these files are _not_ named "~b*.adb, ~b*.ads,
> ~b*.ali, and ~b*.o", but rather "b~*.adb, b~*.ads, b~*.ali, and b~*.o".
> 
> Next, let me say that these files are created regardless of whether the -g
> option is used.  What is different with the -g option is that the files are
> not deleted at the completion of the gnatmake process, because they are
> potentially needed when debugging.
> 
> The best way to find out what things are for in the GNAT compilation
> system is to read the documentation provided with GNAT.
> 
> Here is a pertinent excerpt from that documentation:
> 
> If no errors are detected, the binder produces a main program, in Ada
> by default, that contains calls to the elaboration procedures of those
> compilation unit that require them, followed by a call to the main program.
> This Ada program is compiled to generate the object file for the main
> program. The name of the Ada file is `b~xxx.adb' (with the
> corresponding spec `b~xxx.ads') where xxx is the name of the main
> program unit.
> 
> >
> > Thanks for the help!
> > Shawn
> > _______________________________________________
> > comp.lang.ada mailing list
> > comp.lang.ada@ada.eu.org
> > http://ada.eu.org/mailman/listinfo/comp.lang.ada
> >



  reply	other threads:[~2003-07-16 22:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-16 15:59 what are the created ~b files when using -g with gnatmake srouse
2003-07-16 17:45 ` David C. Hoos
2003-07-16 22:04   ` srouse [this message]
2003-07-17 17:43     ` Jano
2003-07-17 18:22     ` David C. Hoos
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox