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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b595572040412845 X-Google-Attributes: gid103376,public From: david.c.hoos.sr@ada95.com Subject: Re: GNAT and gdb Date: 1999/01/08 Message-ID: <7753h1$20d$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 430170031 References: <36932D7C.621AA7E@aucegypt.edu> To: knaguib@aucegypt.edu X-Http-Proxy: 1.1 x8.dejanews.com:80 (Squid/1.1.22) for client 205.149.60.17 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Jan 08 14:08:35 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT) Date: 1999-01-08T00:00:00+00:00 List-Id: 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