問題描述
因為我需要一個支持 Python 的 gdb
,所以我通過
Because I need a Python-enabled gdb
, I installed another version via
brew tap homebrew/dupes
brew install gdb
我想在 Eclipse CDT 中使用這個 gdb
,我在調試設置中輸入了二進制文件的路徑.但是,啟動調試程序失敗并顯示以下消息:
I want to use this gdb
with Eclipse CDT, where I entered the path to the binary in the Debugging settings. However, launching a program for debugging fails with the following message:
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
在這種情況下,codesigned"是什么意思?我怎樣才能讓這個 gdb
運行?
What does "codesigned" mean in this context? How can I get this gdb
running?
推薦答案
看來您需要對可執行文件進行簽名.有關更多信息,請參閱這些鏈接.如果您不打算重新分發該版本的 gdb
,您應該能夠擺脫自簽名.
It would seem you need to sign the executable. See these links for more information. You should be able to get away with self signing if you don't plan on redistributing that version of gdb
.
https://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man1/codesign.1.html
或者,您可以在系統上禁用代碼簽名,盡管這會帶來安全風險.為此,請嘗試在終端中運行 sudo spctl --master-disable
.
Alternatively, you could disable code signing on your system, although this presents a security risk. To do so try running sudo spctl --master-disable
in the Terminal.
這篇關于如何獲得“編碼"OSX上的gdb?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!