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!border1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!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: <568bb6cd$0$14431$e4fe514c@news.kpn.nl> In-Reply-To: Subject: Re: GPS Breakpoint Error witing debugging an Ada program Date: Wed, 6 Jan 2016 12:31:22 +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: <568cfbc0$0$24168$e4fe514c@news.kpn.nl> NNTP-Posting-Host: 77.168.179.107 X-Trace: 1452080064 dreader33.news.xs4all.nl 24168 77.168.179.107:55114 X-Complaints-To: abuse@kpn.nl X-Received-Bytes: 1828 X-Received-Body-CRC: 3734958656 Xref: news.eternal-september.org comp.lang.ada:29031 Date: 2016-01-06T12:31:22+01:00 List-Id: I was using no optimazation. I was already using one dummy statement within the if statement because I had to know if the if statement worked correctly. Putting a second dummy statement in the body of the if statement was a solution "Simon Wright" schreef in bericht news:ly37ucmbpa.fsf@pushface.org... "ldries46" writes: > In my Ada program I want a breakpoint within an if statement. In the > Breakpoint Editor I can find that breakpoint as nr 4 on line 325. When > running the debugger It stops on line 327, just without the if > statement. I tried to delete the breakpoint and positioning it again, > deleting the exe file and compiling my program, but nothing > helps. What can I do? Are you compiling without optimisation? (-O0) You could try adding dummy statements around the code on line 325?