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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3694678a5f26ab27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-15 07:39:19 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news2.telebyte.nl!newshub1.home.nl!home.nl!skynet.be!skynet.be!louie!tjb!not-for-mail Sender: lbrenta@lbrenta Newsgroups: comp.lang.ada Subject: Re: debugging with gdb References: <6b257ddc.0312150232.2cece50@posting.google.com> From: Ludovic Brenta User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Date: 15 Dec 2003 16:39:17 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 217.136.10.170 X-Trace: 1071502757 reader5.news.skynet.be 277 217.136.10.170:59586 X-Complaints-To: usenet-abuse@skynet.be Xref: archiver1.google.com comp.lang.ada:3467 Date: 2003-12-15T16:39:17+01:00 List-Id: bergnoli@pd.infn.it (antonio) writes: > I'totally new in ada95 and i try to debug a simple program written in > ada95 (i.e hello world).I have compiled with gnatmake(-g option)and i > get an executable that i ran into gdb.It works but i can't see the > original source using the gdb command 'list' and (obviously) i can't > put any break point where i want like i usually do when i work in C. > why? > tank you in advance. > > Antonio Perhaps GDB is looking in the wrong directory for your source files. You can specify where your source files are using the `dir' command (try `help dir', too). I could help better if you gave us the exact commands you used to compile your program and to run GDB. Also, does GDB output any error message when you say `list'? You can debug Ada programs using GDB, but GDB by default does not understand Ada syntax, and you won't be able to set breakpoints on exceptions. For these additional features, you need an Ada-aware GDB available from http://libre.act-europe.fr/GDB. If you are a Debian user, you can also apt-get install gnat-gdb to get it (in unstable). Others have pointed you to GVD and GPS. Both are front-ends to GDB, so you'll need GDB to work for you anyway. Emacs also has such a front-end. HTH -- Ludovic Brenta.