comp.lang.ada
 help / color / mirror / Atom feed
From: david.c.hoos.sr@ada95.com
To: knaguib@aucegypt.edu
Subject: Re: GNAT and gdb
Date: 1999/01/08
Date: 1999-01-08T00:00:00+00:00	[thread overview]
Message-ID: <7753h1$20d$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 36932D7C.621AA7E@aucegypt.edu

In article <36932D7C.621AA7E@aucegypt.edu>,
  knaguib@acm.org wrote:
> I am using gnat 3.10p on Redhat 5.1.  I installed the rpm and everything
> is working fine.  But when I tried to use gdb with it, it didn't work.
> Do I need some sort of patch?  I have no idea how to make gdb recognize
> Ada.  Can someone please help me out?
>
> Karim Naguib
>
You need to build an Ada-aware version of gdb.  These instructions are good
for most any version of UNIX.

What you do is start with the virgin gdb-4.16.tar.gz file (e.g., from
ftp://ftp.uni-duesseldorf.de/ftp/pub/gnu/gdb/gdb-4.16.tar.gz, and untar it.

Next, you need ftp://ftp.cs.nyu.edu/pub/gnat/gdb/gdb-4.16.gnat.1.13.diff.gz
Then you also gunzip the
gdb-4.16.gnat.1.13.diff.gz file preferably in some other
directory.

For this next step, you need the gnu version of patch to be safe.
I found that the sgi IRIX version of patch worked correctly, but the
Solaris 2.5.1 version did not, so I used gnu patch.

Next, you cd into the top-level directory created by untarring
the gdb distribution and execute the patch program with
the gdb-4.16.gnat.1.13.diff file redirected to its standard
input -- e.g.:

patch < [directory-where-diff-file-resides]/gdb-4.16.gnat.1.13.diff

This step modifies the source of gdb-4.16 in various subdirectories.

When this is done, you follow the instructions in the gdb README
file, to build gdb with the modified sources.

You also need bison to build gdb.

You can get Solaris packages for patch and bison, etc. from
the Solaris 2.5 Freeware site at http://smc.vnet.net/solaris_2.5.html
I notice just now, looking at that site, they now have gdb-4.16 source
which they didn't have when I built mine. Some users will find
that site faster than the uni-duesseldorf site.

David C. Hoos, Sr.
david.c.hoos.sr@ada95.com


-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1999-01-08  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-06  0:00 GNAT and gdb Karim Naguib
1999-01-08  0:00 ` david.c.hoos.sr [this message]
  -- strict thread matches above, loose matches on Subject: below --
1994-12-20 14:43 Al Niessner III
1994-12-21  4:55 ` Robert Dewar
replies disabled

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