comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic.brenta@insalien.org>
Subject: Re: debugging with gdb
Date: 15 Dec 2003 16:39:17 +0100
Date: 2003-12-15T16:39:17+01:00	[thread overview]
Message-ID: <m3smjmhyze.fsf@insalien.org> (raw)
In-Reply-To: 6b257ddc.0312150232.2cece50@posting.google.com

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.



  parent reply	other threads:[~2003-12-15 15:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-15 10:32 debugging with gdb antonio
2003-12-15 11:43 ` Georg Bauhaus
2003-12-15 12:20 ` Martin Dowie
2003-12-15 15:39 ` Ludovic Brenta [this message]
2003-12-15 16:01 ` Preben Randhol
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox