The upcoming gcc 4.5.0 release contains changes
in the debug code generation at higher optimization
levels which will make it incompatible with older
gdb releases (ie Apple's). Fortunately, the gdb 7.x
releases will now build on both i386-apple-darwin*
and x86_64-apple-darwin*. I have placed test packaging
for a fsf-gdb package which installs the gdb programs
with the fsf- prefix on fink tracking...

http://sourceforge.net/tracker/?func=detail&aid=2978938&group_id=17203&atid=414256

There is one problem with using FSF gdb on darwin.
Since 10.5.8, the access to the required Mach port
for debugging has been restricted to code signed
applications. So currently, one has to run gdb as
root or use sudo. We should be able to create our
own local openssl certificates and code sign the
fink gdb program though the procedures described...

http://developer.apple.com/mac/library/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
http://www.devworld.apple.com/mac/library/technotes/tn2007/tn2206.html
http://www.rogueamoeba.com/utm/2008/03/07/code-signing-and-you/
http://www.entropy.ch/blog/Developer/2008/02/11/Mac-OS-X-Application-Code-Signing.html
http://langui.sh/2009/02/22/code-signing-for-mac-os-x-and-windows/

Unfortunately, in 10.5, the ability to create and add
certificates to the keychain via the command line was
removed...

http://gagravarr.org/writing/openssl-certs/others.shtml

What I was considering was an approach where, if feasible,
we bundle an openssl certificate with the package and provide
a shell script that would walk the user through the
manual importation steps in the KeyChain applcation.
Hopefully, we can then find a command line approach to
check for the certificate in the KeyChain for future
reinstalls or upgrades and automatically code sign the
installed fsf-gdb binary using the installed certificate.
            Jack
ps Needless to say, the gdb developers were not happy that
Apple did this after all the effort to support intel darwin
as a target.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to