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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2cdc6c2ee911fe77 X-Google-Attributes: gid103376,public From: "Jeff Creem" Subject: Re: gdb question, was Re: Ada vs. C++ Date: 2000/03/07 Message-ID: <8a4a91$q13$1@pyrite.mv.net>#1/1 X-Deja-AN: 594510375 References: <88a775$gsq$1@nntp9.atl.mindspring.net> <952459362.11185.1.nnrp-12.d4e5bde1@news.demon.co.uk> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@mv.com X-Trace: pyrite.mv.net 952478817 26659 199.125.98.16 (8 Mar 2000 01:26:57 GMT) Organization: MV Communications, Inc. X-MSMail-Priority: Normal NNTP-Posting-Date: 8 Mar 2000 01:26:57 GMT Newsgroups: comp.lang.ada Date: 2000-03-08T01:26:57+00:00 List-Id: Mike Dimmick wrote in message news:952459362.11185.1.nnrp-12.d4e5bde1@news.demon.co.uk... > > My own experience with gdb, under linux, was very nasty -- though it may > have been the version of gdb (4.17.0.11): it insisted on listing the C > files that GNAT generated rather than my source files! All I wanted to > find out was where I was getting an exception raised. > > I ended up recompiling the program (which was minimal anyway) under > Windows and using GDB/TK to find the source line. This release actually > told me under the backtrace where the error was occurring. > Actually GNAT only generates 1 c file (and the newer versions don't even have to do that). If you had checked the documentation and/or stepped into the code a little the ada would have magically appeared... Of course I am assuming that you had the Ada aware gdb....(And even if you did not, you could still see the Ada source). I do prefer the ddd interface to gdb...Makes it much easier to use when you don't use gdb much. As always I would recommend consulting the super secret hidden information about gdb and GNAT the the files who's names can not be mentioned...