From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,14db193838d387d7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-16 15:04:45 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: srouse@iastate.edu (srouse) Newsgroups: comp.lang.ada Subject: Re: what are the created ~b files when using -g with gnatmake Date: 16 Jul 2003 15:04:44 -0700 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 205.175.225.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1058393085 19396 127.0.0.1 (16 Jul 2003 22:04:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Jul 2003 22:04:45 GMT Xref: archiver1.google.com comp.lang.ada:40360 Date: 2003-07-16T22:04:45+00:00 List-Id: 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" wrote in message news:... > ----- Original Message ----- > From: "srouse" > Newsgroups: comp.lang.ada > To: > 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 > >