如何获得“编码的” OSX上的gdb? [英] How to get a "codesigned" gdb on OSX?

查看:127
本文介绍了如何获得“编码的” OSX上的gdb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为我需要一个支持Python的 gdb ,我通过

Because I need a Python-enabled gdb, I installed another version via

brew tap homebrew/dupes
brew install gdb

gdb 与Eclipse CDT,其中我在调试设置中输入二进制文件的路径。但是,启动调试程序失败,并显示以下消息:

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).\n (please check gdb is codesigned - see taskgated(8))
Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated(8))

codesigned是什么意思?如何获得此 gdb 运行?

What does "codesigned" mean in this context? How can I get this gdbrunning?

推荐答案

需要签署可执行文件。有关详细信息,请参阅这些链接。如果您不打算重新分发 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆