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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5978c98b23dbfa0b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.191.41 with SMTP id gv9mr7833555pbc.5.1324556410720; Thu, 22 Dec 2011 04:20:10 -0800 (PST) Path: lh20ni51557pbb.0!nntp.google.com!news1.google.com!postnews.google.com!q9g2000yqe.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: Re: Debugging Ada Date: Thu, 22 Dec 2011 04:20:10 -0800 (PST) Organization: http://groups.google.com Message-ID: <5d5f710e-a9be-4ae4-b66d-1e2e0fd1d67b@q9g2000yqe.googlegroups.com> References: <4b7ed906-dfbb-4f73-826e-f1c94ec320e7@k10g2000yqk.googlegroups.com> <5567da15-bd12-4dee-be27-b98525ea1323@x19g2000yqf.googlegroups.com> <1fcdb3e7-6125-4cdc-9514-dd3cff2a7350@h3g2000yqa.googlegroups.com> <0892748e-8943-41e3-8843-9121838b4465@f33g2000yqh.googlegroups.com> <56da68a5-1d00-4ec7-863b-c9a2a7a64f95@l19g2000yqc.googlegroups.com> <87zkelvhbr.fsf@ludovic-brenta.org> NNTP-Posting-Host: 192.91.173.42 Mime-Version: 1.0 X-Trace: posting.google.com 1324556410 17142 127.0.0.1 (22 Dec 2011 12:20:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 22 Dec 2011 12:20:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q9g2000yqe.googlegroups.com; posting-host=192.91.173.42; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-12-22T04:20:10-08:00 List-Id: On Dec 22, 2:21=A0am, Adam Beneschan wrote: > > If LAN_CFG_FILE is declared inside a procedure as shown in a previous > post, how can elaboration order be an issue? > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- Adam Ugh, you are right! I was under the impression that this LAN file was a separate package and kept reading the 'procedure LAN' line as 'package LAN'... which was making me think the problem was elaboration related... I think this impression was enforced by the long delay between the declaration section being executed and the body of the procedure being called. I'll need to take a fresh look at this when I get into work this morning. Now, I'm thinking that the cause is likely related to compiler optimization, and that optimization is not occurring when we append the Null character at the end of the string. Regarding the suggestion to use an all Ada config package, the code I'm working on was originally developed in the mid 80s and is a combination of Ada and C. It has been migrated from multiple platforms over the past 25 years, and there are limitations to what I can change. If I had my way, we would be redesigning/reimplementing this using modern concepts rather than on the original limitations of the Ada83 language. :)