comp.lang.ada
 help / color / mirror / Atom feed
From: Blady <p.p11@orange.fr>
Subject: Re: OS X 10.8 Mountain Lion and GNAT GPL 2012
Date: Sun, 23 Sep 2012 06:46:55 -0700 (PDT)
Date: 2012-09-23T06:46:55-07:00	[thread overview]
Message-ID: <0a340e63-b567-4a6c-bba7-5e2c73649d05@googlegroups.com> (raw)
In-Reply-To: <m2fw6c8xh3.fsf@pushface.org>

Le jeudi 20 septembre 2012 18:34:17 UTC+2, Simon Wright a écrit :
> 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/bin/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 option -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=gnat_debugger
Signed Time=14 mai 2012 16:25:55
It seems that taksgated need a local system signature thus we have to follow 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 line numbers.

HTH, Pascal.




  reply	other threads:[~2012-09-23 13:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30 19:51 OS X 10.8 Mountain Lion and GNAT GPL 2012 Bill Findlay
2012-07-30 20:39 ` Simon Wright
2012-07-30 22:40   ` Bill Findlay
2012-07-30 23:55   ` Jerry
2012-07-31  0:15     ` Bill Findlay
2012-09-16  8:58 ` Blady
2012-09-16 11:20   ` Bill Findlay
2012-09-17  8:20   ` Jerry
2012-09-17 12:13     ` Bill Findlay
2012-09-18  1:06       ` Jerry
2012-09-18 15:54         ` Bill Findlay
2012-09-19  1:00           ` Jerry
2012-09-19  8:01             ` Simon Wright
2012-09-19 21:26     ` Georg Bauhaus
2012-09-20  7:26       ` Jerry
2012-09-20 16:34         ` Simon Wright
2012-09-23 13:46           ` Blady [this message]
2012-09-23 14:37             ` Bill Findlay
2012-09-23 18:43               ` Simon Wright
2012-12-09  0:02 ` joplinsilva
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox