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-Thread: 103376,c4f703f0b0ac81b7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!q8g2000prm.googlegroups.com!not-for-mail From: John McCormick Newsgroups: comp.lang.ada Subject: Re: Debugger difference between GPS 2008/2009 and 2010 Date: Tue, 21 Dec 2010 09:54:55 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <4cf513fe$0$390$703f8584@news.kpn.nl> NNTP-Posting-Host: 134.161.242.221 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1292954096 9701 127.0.0.1 (21 Dec 2010 17:54:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 21 Dec 2010 17:54:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q8g2000prm.googlegroups.com; posting-host=134.161.242.221; posting-account=jVm7MAoAAABZ69ylB7L9PjZAVQg4j4fC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:17072 Date: 2010-12-21T09:54:55-08:00 List-Id: 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 :=3D Word'First; loop exit when Index > Word'Last or else Word (Index) in Uppercase; Index :=3D Index + 1; end loop; if Index <=3D Word'Last then Word :=3D 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=A0am, "ldries46" 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 us= e > 'Debug' / 'Display "name"' which gave me a box with four elements, next, > previous, reference and last. The first two are for internal use, the las= t > presents the number of characters in the string and reference gave a poin= ter > to the string (in blue). Clicking on that pointer revealed the stringunde= r > 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 m= e. > > L. Dries