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,4bd5f0f0bea53c58 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-25 00:33:17 PST Message-ID: <3E5B2A37.9020604@epfl.ch> Date: Tue, 25 Feb 2003 09:32:55 +0100 From: =?ISO-8859-1?Q?Rodrigo_Garc=EDa?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: debugging ada with gdb References: <3e5aa6ba$1_4@news.arrakis.es> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: lglpc31.epfl.ch X-Trace: epflnews.epfl.ch 1046161995 128.178.76.8 (25 Feb 2003 09:33:15 +0200) Organization: EPFL Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!news.imp.ch!news.imp.ch!news-zh.switch.ch!epflnews.epfl.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:34548 Date: 2003-02-25T09:32:55+01:00 List-Id: alfonso acosta wrote: > Hi: > > Im trying to debug an Ada program compiled with gnat 3.14p-3. > Im using "GNU gdb 5.3-debian" with gvd. > > The problem is that I cant use ada expressions when debugging, I have to > guess what identifier correponds to each variable. > > If I finally manage to know whats the name for a structured variable (an > array, a record etc.. ) and I print it, I get a strange structure, maybe > GNATs internal representation. > > Im using incompatible debugger and compiler versions? > > > Thanks in Advance > > Alfonso Acosta > > PS: Im using Debian GNU/Linux (sid) > Use the gdb that comes with your GNAT distribution (look at "bin" folder). It should output something like this: GNU gdb 5.1.1.gnat.3.15p Copyright 2002 Free Software Foundation, Inc. Ada Core Technologies version of GDB for GNAT Professional .... Then, take a look at chapter 23 of GNAT's Users Guide. Rodrigo PD: What about your "waiting for signals" problem? Did you try what I told you?