OSX Mavericks + GDB - anyone have success
Posted: Wed Feb 26, 2014 8:52 pm
Basically, in Mavericks, Apple no longer installs or provides GDB in the command line tools. Unfortunately, I have to upgrade OS as frequently as they come out. So now, everyone on Mac using GDB has to scramble. There are lots of tutorials on building GDB on OSX and that step was easy. Then the challenge becomes signing the GDB binary so it can attach to the process being debugged. This tutorial also addresses that with creating a certificate and signing gdb. Then you have to restart tasted (or reboot). This is all supposed to work. I've gone through this process several times, rebuilding both gdb and the certificate from scratch, rebooting, etc but I still get the error:
Debugger exited with the following error string:
"Unable to find Mach task port for process-id 649: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))"
When attempting to debug in CodeLite. Has anyone had any success using GDB on Mavericks in CL?
thanks!
Michael
Debugger exited with the following error string:
"Unable to find Mach task port for process-id 649: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))"
When attempting to debug in CodeLite. Has anyone had any success using GDB on Mavericks in CL?
thanks!
Michael