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.236.46.8 with SMTP id q8mr31486828yhb.0.1420429401598; Sun, 04 Jan 2015 19:43:21 -0800 (PST) X-Received: by 10.140.102.19 with SMTP id v19mr231255qge.2.1420429401519; Sun, 04 Jan 2015 19:43:21 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!bm13no3298293qab.0!news-out.google.com!n9ni76qai.0!nntp.google.com!dc16no4155567qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 4 Jan 2015 19:43:21 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.111.108.35; posting-account=Ies7ywoAAACcdHZMiIRy0M84lcJvfxwg NNTP-Posting-Host: 50.111.108.35 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to do basic debugging with Ada? From: brbarkstrom@gmail.com Injection-Date: Mon, 05 Jan 2015 03:43:21 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2141 X-Received-Body-CRC: 1940086909 Xref: news.eternal-september.org comp.lang.ada:24355 Date: 2015-01-04T19:43:21-08:00 List-Id: On Sunday, January 4, 2015 9:52:53 PM UTC-5, John Smith wrote: > Hello, >=20 > All the way in the bottom is a simple hello world application. I compile = it using gnatmake hello_world. However, when I load it in gdb and try to s= et a breakpoint on the first output line, I get a message saying that the s= ymbol table is not loaded. If I'm missing a step, what is it? >=20 >=20 >=20 >=20 > with Ada.Text_IO; use Ada.Text_IO; >=20 > procedure hello_world3 is > begin > Put_Line("Hello, world!"); > New_Line; > Put_Line("I am an Ada program with package use."); > end hello_world3; Assuming you're using AdaCore GNAT gps, check the flags so that debug is on. Start by opening up the "Edit Project" popup. Then, go through that systematically and turn on all the flags that have to do with debug. Make sure whereever you can turn on a debug info switch, you have them active. You may also need to recompile with debug active. Hope this is helpful. Bruce B.