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,432c3b9d4763b8fe X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Where to good the good ASIS version for my version of GNAT ? Date: Sat, 06 Nov 2010 13:55:41 +0000 Organization: A noiseless patient Spider Message-ID: References: <2381c925-4186-4bcd-b38d-1857c71d8b44@t35g2000yqj.googlegroups.com> <48810eb0-9f2c-4268-bd8b-78e48eb46c0f@32g2000yqz.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx01.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="18328"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EE3xesJ6So1OXxWeNXqLcyQLkD5Sxe7w=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:geGp3ITAxWhArm9hfIdV8UxThzw= sha1:zzcQ7LcUMY+gjaoPk7X5SxuM/gw= Xref: g2news1.google.com comp.lang.ada:15331 Date: 2010-11-06T13:55:41+00:00 List-Id: "Yannick DuchĂȘne (Hibou57)" writes: > Le Sat, 06 Nov 2010 01:37:10 +0100, Simon Wright > a Ă©crit: >> Hmm. >> >> In asis-2009-src/gnat/, >> >> . replace sinfo.ad[bs] by gcc-4.5.0/gcc/ada/sinfo.ad[bs] >> >> . replace gnatvsn.ads by gcc-4.5.0/gcc/ada/gnatvsn.ads >> >> . edit gnatvsn.adb to remove the 'gnatpro' choices, not in the .ads >> >> and build (in asis-2009-src/, "make all"). This ran at least one of the >> examples in tutorial/using_asistant/black_box.scr. > Impressive. Did you study the whole GNAT source ? Will try this too. Thanks. The gnatvsn changes were hinted at by Ludovic. Without the sinfo read-across, the resulting program builds but crashes with an assertion failure in sinfo.adb. Building ASIS for debug required quite a few changes - the debug options effectively use the GNAT development options which treat warnings, including style warnings, as errors; and anyway for some reason GDB's 'break exception' didn't work, I think this must be a Mac thing. Grr. Anyway, I realised that since sinfo defines the tree structure which ASIS reads, having compatible sinfo is vital.