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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6458d1ee91b224ec X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.72.199 with SMTP id n7mr14659825qaj.5.1360128597043; Tue, 05 Feb 2013 21:29:57 -0800 (PST) X-Received: by 10.49.15.38 with SMTP id u6mr2288886qec.8.1360128597004; Tue, 05 Feb 2013 21:29:57 -0800 (PST) Path: k2ni8440qap.0!nntp.google.com!p13no14609237qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 5 Feb 2013 21:29:56 -0800 (PST) In-Reply-To: <5111a9d5$0$6567$9b4e6d93@newsspool3.arcor-online.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.101.43.139; posting-account=BX0hiQoAAACh1jwwbtKtvsAU1boh6owG NNTP-Posting-Host: 83.101.43.139 References: <5111a9d5$0$6567$9b4e6d93@newsspool3.arcor-online.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: chopping Ada source that have preprocessor symbols in them From: codeallergy Injection-Date: Wed, 06 Feb 2013 05:29:57 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-02-05T21:29:56-08:00 List-Id: Hi Georg, gnatchop call gcc with the -gnatu flag to generates the unit separation offsets. example gcc -c -gnats -gnatu -x ada pack_test.ada Unit pack_test (spec) line 1, file offset 0, file name pack_test.ads Unit pack_test (body) line 10, file offset 90, file name pack_test.adb End of compilation the problem is that the offsets are for the preprocessed file but gnatchop separates the non preprocessed one. you could use gnatchop without any preprocessor flags (you will get errors but the file should be cut rightly). - Romcgb