www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/26/13:15:46

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE>
Newsgroups: comp.os.msdos.djgpp,comp.lang.ada
Subject: Re: RHIDE 1.3, GNAT (for DOS) and GDB - problem with watches
Date: Wed, 24 Sep 1997 14:17:39 +0200
Organization: TU Chemnitz-Zwickau
Lines: 35
Message-ID: <342904E3.7D2C7936@Mathematik.TU-Chemnitz.DE>
References: <3427DB4E DOT 7548 AT mail DOT connect DOT usq DOT edu DOT au>
NNTP-Posting-Host: wega.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Matthew Kennedy wrote:
> 
> Hello,
> 
> I'm having trouble debugging my Ada code under the RHIDE environment. I
> am using an Ada 'aware' version of GDB and the Ada compiler is DOS GNAT.

An here is one of the problems. If the ADA maintainer would send the
gdb patches to the gdb maintainer (or when they have sent then if they
would accepted) RHIDE's builting gdb would have also the ADA debugging
patches. At least RHIDE 1.3c uses the latest GDB snapshot which is from
17. August 1997 and I checked it and there seems nothing related to
ADA.

> The problem is that the IDE doesn't seem to recognise any Ada variable
> names when I set watches - instead I get 'variable_x: Not Available'

In my opinion you can solve this by reading the ADA docs (I took a short
look at them and found it) to get infomation, how the ADA compiler
mangles
the variable names and you have to use this technique also for accessing
the variable.

> Maybe there's some sort of pre/suffix for variable names that will get
> me around this problem?
This is documented in the ADA-docs.

Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019