comp.lang.ada
 help / color / mirror / Atom feed
* Re: RHIDE 1.3, GNAT (for DOS) and GDB - problem with watches
  1997-09-24  0:00 RHIDE 1.3, GNAT (for DOS) and GDB - problem with watches Matthew Kennedy
@ 1997-09-24  0:00 ` Robert Hoehne
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Hoehne @ 1997-09-24  0:00 UTC (permalink / raw)
  To: q9522772


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.Hoehne@Mathematik.TU-Chemnitz.DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************




^ permalink raw reply	[flat|nested] 2+ messages in thread

* RHIDE 1.3, GNAT (for DOS) and GDB - problem with watches
@ 1997-09-24  0:00 Matthew Kennedy
  1997-09-24  0:00 ` Robert Hoehne
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Kennedy @ 1997-09-24  0:00 UTC (permalink / raw)



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.

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'
even though the variable is in the current scope. Stepping though the
code, non-conditional breakpoints and 'run to cursor' work as expected.

Maybe there's some sort of pre/suffix for variable names that will get
me around this problem?

Thanks,
Matt.


-- 
Matthew Kennedy
Student of Electrical and Electronics Engineering
University of Southern Queensland, Australia
  "When will you realise you're already there?" 
      - Marilyn Manson




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-09-24  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-24  0:00 RHIDE 1.3, GNAT (for DOS) and GDB - problem with watches Matthew Kennedy
1997-09-24  0:00 ` Robert Hoehne

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