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,66dff3c328fa5d28 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.224.189.75 with SMTP id dd11mr8097849qab.6.1348408015363; Sun, 23 Sep 2012 06:46:55 -0700 (PDT) Received: by 10.52.90.69 with SMTP id bu5mr1526801vdb.6.1348408015312; Sun, 23 Sep 2012 06:46:55 -0700 (PDT) Path: e10ni13434282qan.0!nntp.google.com!l8no6862217qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 23 Sep 2012 06:46:55 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2.1.226.195; posting-account=94GLqQoAAABRDKJ5vWVBzCDWAEq47F5V NNTP-Posting-Host: 2.1.226.195 References: <401145c7-394a-4bda-b22e-bb3b22cfd4a8@googlegroups.com> <1b899a42-fcd3-429b-93b9-1c61d87218e4@googlegroups.com> <505a3889$0$6565$9b4e6d93@newsspool3.arcor-online.net> <96ee8f21-3f7f-4f32-9bfc-b71c0c25da6e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0a340e63-b567-4a6c-bba7-5e2c73649d05@googlegroups.com> Subject: Re: OS X 10.8 Mountain Lion and GNAT GPL 2012 From: Blady Injection-Date: Sun, 23 Sep 2012 13:46:55 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-09-23T06:46:55-07:00 List-Id: Le jeudi 20 septembre 2012 18:34:17 UTC+2, Simon Wright a =E9crit=A0: > I just updated to 10.7.5. > The gdb from GNAT GPL 2012 seemed to work fine: it's > $ ls -l /opt/gnat-gpl-2012/bin/gdb > -rwxr-sr-x@ 1 simon procmod 5479472 14 May 15:25 /opt/gnat-gpl-2012/bi= n/gdb > /usr/bin/gdb, on the other hand, isn't setgid procmod and (the first > time I ran it) put up a dialog box asking for my password. > I have /System/Library/LaunchDaemons/com.apple.taskgated.plist set up to > run taskgated with -p -s. Yes Simon, in fact with ML, taskgated isn't launched with option -p (manual= said: old (Tiger) convention that a process with a primary effective group= of procmod or procview is allowed to get task ports. Without this option, = this legacy mode is not supported.) As you said for Lion, and in my case with SL, taksgated was launched with o= ption -p. Thus with ML even gdb has setgid procmod group, it is blocked by taskgated. Fortunately the -s option of taksgated (active with both SL and ML) let us = codesign gdb to proceed. Well, GNAT gdb is already signed: Authority=3Dgnat_debugger Signed Time=3D14 mai 2012 16:25:55 It seems that taksgated need a local system signature thus we have to follo= w instructions on http://sourceware.org/gdb/wiki/BuildingOnDarwin. And we must force it with -f option: $ codesign -fs gnat_gdb gdb gdb: replacing existing signature It is now ok. Don't forgot to add option '-largs -Wl,-no_pie' if you want to get good lin= e numbers. HTH, Pascal.