本文共 2027 字,大约阅读时间需要 6 分钟。
unable to find mach task port for process-id *** (os/kern) failure (0x5) (please check gdb is codesigned - see taskgated(8))
文章就暂不翻译了,一步一步看,Easy for U
code-signing.txt [plain text]
On MacOSX lldb needs to be code signed. The Debug and Release builds are set to code sign using a code signing certificate named lldb_codesign.If you don’t have one yet you will need to:
- Launch /Applications/Utilities/Keychain Access.appIn Keychain Access select the “login” keychain in the “Keychains”
list in the upper left hand corner of the window.Select the following menu item:
Keychain Access->Certificate Assistant->Create a Certificate…
Set the following settings
Name = lldb_codesign
Identity Type = Self Signed Root Certificate Type = Code SigningClick Continue
Turn down the “Trust” disclosure triangle
Change:
When using this certificate: Always TrustEnter your login password to confirm and make it trusted
The next steps are necessary on SnowLeopard, but are probably because of a bug
how Keychain Access makes certificates.sudo security add-trust -d -r trustRoot -p basic -p codeSign -k /Library/Keychains/System.keychain ~/Desktop/lldb_codesign.cer
That should do it.
最后记得加上这一句:
sudo codesign -s lldb_codesign /usr/local/bin/gdb
转载地址:http://ensql.baihongyu.com/