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 X-Received: by 10.66.63.68 with SMTP id e4mr5369544pas.40.1459576006105; Fri, 01 Apr 2016 22:46:46 -0700 (PDT) X-Received: by 10.182.246.104 with SMTP id xv8mr270710obc.1.1459576006059; Fri, 01 Apr 2016 22:46:46 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!nt3no6863755igb.0!news-out.google.com!u9ni157igk.0!nntp.google.com!nt3no6863747igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 1 Apr 2016 22:46:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=37.190.52.67; posting-account=YB4WOgoAAABLG9D7qoJiPBc6EJSzsPDF NNTP-Posting-Host: 37.190.52.67 References: <75868a0e-c46d-4d7a-9c91-9d29edbe6622@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GPS Debugger exit when "Ada.Text_IO.Put_Line" reached. From: George J Injection-Date: Sat, 02 Apr 2016 05:46:46 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:29958 Date: 2016-04-01T22:46:45-07:00 List-Id: =D0=BF=D1=8F=D1=82=D0=BD=D0=B8=D1=86=D0=B0, 1 =D0=B0=D0=BF=D1=80=D0=B5=D0= =BB=D1=8F 2016 =D0=B3., 15:18:19 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE= =D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Simon Wright =D0=BD=D0=B0=D0=BF=D0=B8= =D1=81=D0=B0=D0=BB: > George J writes: >=20 > > Hi all!I'm using GNAT GPS in my project. I have a problem with > > debugging. When debugger reaches line > > "Ada.Text_IO.Put_Line("Something");" it exit with "[Inferior 1 > > (process X) exited with code 1]". So I can't understand, how I can > > solve this problem. And BTW I have a question, is there any feature to > > display only "Debug Messages" in console or not? >=20 > George, why do you post messages three times? >=20 > Please say what you mean by "when debugger reaches line". Did you put a > breakpoint on it? If so, what did you do next? I most often use gdb from > the command line rather than via GPS; there are four possibilities, (1) > next =3D> run until the next line in the current subprogram is reached, > (2) step =3D> if at a subprogram call, run until the first line of the > subprogram, otherwise as next I think, (3) finish =3D> run until the > current subprogram returns, (4) continue =3D> run until another > breakpoint/exception/end of program (your program ran to end of > program). >=20 > In GPS, the buttons that control this are displayed (only while > debugging) at the right-hand end of the row of buttons under the menu > bar. >=20 > You do have to have compiled your code for debug (for example, you can't > step into a subprogram that wasn't compiled for debug). Today I've tried to compile and build project with different options. So I'= ve got the result : if I build project with "-mwindows" linker option, debu= gger begins make "Inferior exit with 01" when reaches "Ada.Text_IO.Put_Line= " with or without breakpoint. Now I think about how to solve this. I'll be = glad to any help. Thanks!