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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.121.70 with SMTP id u67mr8108704ywc.2.1469472491892; Mon, 25 Jul 2016 11:48:11 -0700 (PDT) X-Received: by 10.157.58.116 with SMTP id j107mr912831otc.13.1469472491854; Mon, 25 Jul 2016 11:48:11 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!j37no4588105qta.0!news-out.google.com!d130ni14318ith.0!nntp.google.com!f6no4578519ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 25 Jul 2016 11:48:11 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1205:c68c:9d90:7477:8b90:881c:24c3; posting-account=Pm0FhgoAAAAiPscNT3etSZ15tHNZGXm_ NNTP-Posting-Host: 2a02:1205:c68c:9d90:7477:8b90:881c:24c3 References: <3e02dbb0-69e3-429b-b8c5-d4762dbeb187@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Exception traceback when using TDM-GCC 5.1.0-3 From: ahlan.marriott@gmail.com Injection-Date: Mon, 25 Jul 2016 18:48:11 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31163 Date: 2016-07-25T11:48:11-07:00 List-Id: Dear Bj=C3=B6rn, Thanks for your suggestions, however I still don't get a traceback. I call Gprbuild with -P and the name of the Gpr file together with -eS and = -q My gpr is for Exec_Dir use "W:\Product\Elephant\Windows"; for Main use ("GnatTest.adb"); package Pretty_Printer is for Default_Switches ("ada") use ("-i2", "-M120", "-aL", "-A1", "-A4"= ); end Pretty_Printer; package Builder is for Default_Switches ("ada") use ("-k", "-s", "-j4", "-g"); for Executable ("GnatTest.adb") use "GnatTest"; end Builder; package Compiler is for Default_Switches ("ada") use ("-O1", "-gnatQ", "-gnata", "-gnato", "-g", "-gnat12", "-gnatwcehijkmopruvz.c.n.p.t.w.x", "-gnatykmpM120"); end Compiler; package Binder is for Default_Switches ("ada") use ("-E"); end Binder; package Linker is for Linker_Options use (); for Default_Switches ("ada") use ("-g", "-LW:\Product\Elephant\Windows", "D:\Binary\Elephant\Ada\Projects\Test\GnatTest\objects\resources.= o", "-mwindows"); end Linker; Ahlan On Monday, 25 July 2016 16:06:38 UTC+2, bj=C3=B6rn lundin wrote: > On 2016-07-25 14:05, Simon Wright wrote: > > ahlan.marriott@gmail.com writes: > >=20 > >> package Compiler is=20 > >> for Default_Switches ("ada") use=20 > >> ("-O1", "-gnatQ", "-gnata", "-gnato", "-g", "-gnat12",=20 > >> "-gnatwcehijkmopruvz.c.n.p.t.w.x", "-gnatykmpM120");=20 > >> end Compiler;=20 > >=20 > > I think it's better to put -g in Builder: > >=20 > > package Builder is > > for Default_Switches ("ada") use ("-g"); > > end Builder; > >=20 > > so it gets used in the link phase too. > >=20 >=20 >=20 > or perhaps i Builder >=20 > package Builder is > for Default_Switches ("Ada") use ("-k","-s","-j4","-g"); > end Builder; >=20 > --=20 > -- > Bj=C3=B6rn