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.5 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost2.xs4all.net!news.kpn.nl!not-for-mail From: "ldries46" Newsgroups: comp.lang.ada References: <568ba1a5$0$12295$e4fe514c@news.kpn.nl> In-Reply-To: Subject: Re: GPS debugging problem Date: Wed, 6 Jan 2016 12:26:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 Message-ID: <568cfa8f$0$24130$e4fe514c@news.kpn.nl> NNTP-Posting-Host: 77.168.179.107 X-Trace: 1452079759 dreader33.news.xs4all.nl 24130 77.168.179.107:54923 X-Complaints-To: abuse@kpn.nl Xref: news.eternal-september.org comp.lang.ada:29030 Date: 2016-01-06T12:26:07+01:00 List-Id: My code is compiled with the no optimazation button is GPS activated. In the meantime I found the following.: In the if statement only one statement was positoned. because I was testing if the program reached the part within the statement under the correct circumstances. First I used the null statement, lateron a statement in te form n := n; just to do somthing. Then I placed a second statement in the if statement At that moment the brakpoint was reached under correctly. schreef in bericht news:ef9b8c09-74bb-4cb7-b769-2e4045d7c646@googlegroups.com... I would guess your code is compiled with full optimization (-O2 for instance), which is generally not a good idea when you need to debug. I would recommend using -O1 or even -O0 instead, and recompile at least that file