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=unavailable 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!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GPS Breakpoint Error witing debugging an Ada program Date: Tue, 05 Jan 2016 12:51:13 +0000 Organization: A noiseless patient Spider Message-ID: References: <568bb6cd$0$14431$e4fe514c@news.kpn.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="378129f99c3c32c8ce464f7428f5f75e"; logging-data="5752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pLdvRRKwdQCTrLns6yCrD22iJHGZt0pY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:RDjNvyhW8HdF1pH+tlyu+8sdhAE= sha1:q3ndS4E3LFPS7t7usuMTMz57+24= Xref: news.eternal-september.org comp.lang.ada:29020 Date: 2016-01-05T12:51:13+00:00 List-Id: "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?