comp.lang.ada
 help / color / mirror / Atom feed
From: John McCormick <mccormick@cs.uni.edu>
Subject: Re: Debugger difference between GPS 2008/2009 and 2010
Date: Tue, 21 Dec 2010 09:54:55 -0800 (PST)
Date: 2010-12-21T09:54:55-08:00	[thread overview]
Message-ID: <ca2d6a70-ecff-4fdf-8660-ddc792b7262b@q8g2000prm.googlegroups.com> (raw)
In-Reply-To: 4cf513fe$0$390$703f8584@news.kpn.nl

I just found a similar problem in a debugger tutorial I use for my
Freshman students.  In the following procedure

   procedure Swap (Word : in out String) is
      Index : Positive;
   begin
      Index := Word'First;
      loop
         exit when Index > Word'Last  or else  Word (Index) in
Uppercase;
         Index := Index + 1;
      end loop;

      if Index <= Word'Last then
         Word := Word (Index .. Word'Last) & Word (Word'First .. Index
- 1);
      end if;
   end Swap;

we want to examine the parameter Word.  When we display Word, we see a
box with an address (of this formal parameter).  Double clicking on
the address used to open up another box (Word.all) with the value of
the string.  But now that we have changed over to GPS 2010, the
Word.all box shows "unknown variable" rather than the value of the
string.  Interestingly, if we ask to print the value of Word.all
rather than display the value of Word.all, the correct value of the
string is displayed in the debugger console window.

As I used this tutorial successfully with GPS 2008 and 2009, this is
definetely a new "feature" of GPS 2010.

John

On Nov 30, 9:10 am, "ldries46" <bertus.dr...@planet.nl> wrote:
> While debugging an ADA program in GPS I observed a rather annoying
> difference between the older versions of 2008 and 2009 versus the version of
> 2010. In the program I'm trying to create I do use a lot of Unbounded
> Strings. Trying to display these strings in the older versions I could use
> 'Debug' / 'Display "name"' which gave me a box with four elements, next,
> previous, reference and last. The first two are for internal use, the last
> presents the number of characters in the string and reference gave a pointer
> to the string (in blue). Clicking on that pointer revealed the stringunder
> the name of reference.all . In GPS 2010 reference.all always presents a
> message "unknown variable", however the unbounded string in the program
> itself can be correctly used.
> May be I used a wrong setting but I cannot find which, can anybody help me.
>
> L. Dries




  parent reply	other threads:[~2010-12-21 17:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-30 15:10 Debugger difference between GPS 2008/2009 and 2010 ldries46
2010-12-04 22:12 ` Simon Wright
2010-12-05 10:50   ` ldries46
2010-12-21 17:54 ` John McCormick [this message]
2010-12-21 20:22   ` Simon Wright
replies disabled

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